database location question
database location question
От:
Carolyn Lu Wong <carolyn@greatpacific.com.au>
Дата:
I'm using V6.5.3. Is there a way to move the database to another directory location instead in /var/lib/pgsql? As this is on the root file system on the server and it's using to much spaces.
Re: database location question
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Carolyn Lu Wong 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