Re: Can I run two Postgres sessions at the same time? - Mailing list pgsql-novice

From Frank Bax
Subject Re: Can I run two Postgres sessions at the same time?
Date
Msg-id 5.2.1.1.0.20050627135522.00aa5e30@pop6.sympatico.ca
Whole thread Raw
In response to Can I run two Postgres sessions at the same time?  (Steve Poe <spoe@sfnet.cc>)
List pgsql-novice
At 12:36 PM 6/27/05, Steve Poe wrote:

>I have a small business I am helping with their Postgresql server. They
>may need to move one of two databases onto a seperate disk system. They
>don't want another physical server. Can I run two postmasters pointing
>to different disk areas
>(i.e. /usr/local/db1/data , /usr/local/db2/data)? Can they be on the
>same port?


Your example shows two data directories (which contain subdirectories for
databases), but your question was about moving a database, not a data
directory.  If you want to move one database to another disk, you can do
that without much trouble...

         - stop postmaster
         - move database directory to new disk system
         - create link from old db2 location to new disk system
         - restart postmaster

Frank


pgsql-novice by date:

Previous
From: Brad Nicholson
Date:
Subject: Re: Can I run two Postgres sessions at the same time?
Next
From: Joel da Silva
Date:
Subject: PostGis Extension