Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In general you can have multiple <strong>independent</strong> instances of PostgreSQL. Strictly speaking it's database cluster with separate:</p> <ul> <li>data directory</li> <li>configuration (e.g. <code>postgresql.conf</code>, <code>pg_hba.conf</code>)</li> <li>listening TCP/UDP port (default 5432+)</li> <li>owner user and superuser role</li> <li>locale and default encoding</li> <li>log file</li> <li>postmaster server process (on Windows postgres.exe)</li> </ul> <p>Perfect well-done example is Debian with easy to use <a href="http://packages.debian.org/squeeze/postgresql-common" rel="noreferrer"><code>postgresql-common</code></a> infrastructure (pg_ctlcluster, pg_lsclusters, pg_createcluster, pg_dropcluster, included SSL, log rotation and so on).</p> <p><strong>EDIT:</strong></p> <p>I found it's rather easy to install second, third, etc. instance of same versioned PostgreSQL under Windows with <a href="http://www.enterprisedb.com/products-services-training/pgdownload" rel="noreferrer">EnterpriseDB's installer</a>, <strong>no need</strong> to use <a href="http://www.postgresql.org/docs/current/static/app-initdb.html" rel="noreferrer"><code>initdb</code></a> and <a href="http://www.postgresql.org/docs/current/static/app-pg-ctl.html" rel="noreferrer"><code>pg_ctl</code></a> (assuming 64-bit installation, probably you need to use <code>Program Files (x86)</code> for 32-bit installation):</p> <ol> <li>Open <code>cmd</code> with admin privileges (Run as Administrator)</li> <li>Execute: <code>cd "C:\Program Files\PostgreSQL\9.0\installer\server"</code></li> <li>Create new database cluster (press Enter on every step): <code>initcluster.vbs postgres postgres 12345 "C:\Program Files\PostgreSQL\9.0" "C:\Program Files\PostgreSQL\9.0\data2" 5433 DEFAULT</code></li> <li>Register as Windows Service: <code>startupcfg.vbs 9.0 postgres 12345 "C:\Program Files\PostgreSQL\9.0" "C:\Program Files\PostgreSQL\9.0\data2" postgresql-x64-9.0-2</code></li> <li>Run newly created service <code>postgresql-x64-9.0-2</code> using <code>services.msc</code> and you have second server</li> </ol> <p>Change <code>12345</code> to your password specified during PostgreSQL installation. You don't have to use <code>data2</code> directory, use whatever you like (but of course not existing <code>data</code> directory). </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload