Re: database location question - Mailing list pgsql-sql

From Tom Lane
Subject Re: database location question
Date
Msg-id 29342.998403164@sss.pgh.pa.us
Whole thread Raw
In response to database location question  (Carolyn Lu Wong <carolyn@greatpacific.com.au>)
List pgsql-sql
Carolyn Lu Wong <carolyn@greatpacific.com.au> writes:
> I'm using V6.5.3.

You really oughta update ;-)

> Is there a way to move the database to another directory location
> instead in /var/lib/pgsql?

Sure, just shut down the postmaster, physically move the entire data tree
(use 'cp -p -r' or 'tar' or some such), put a symlink to the new place
at /var/lib/pgsql/data, and away you go.  Or forget the symlink and
instead tell the postmaster where the data tree is with a -D switch.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Henshall, Stuart - WCP"
Date:
Subject: RE: Sequential select queries...??
Next
From: Tom Lane
Date:
Subject: Re: Getting 'n-1'th record.