Re: database location question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carolyn Lu Wong <carolyn(at)greatpacific(dot)com(dot)au>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: database location question
Date: 2001-08-21 14:12:44
Message-ID: 29342.998403164@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Carolyn Lu Wong <carolyn(at)greatpacific(dot)com(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jeff Eckermann 2001-08-21 14:17:33 Re: split/explode functions
Previous Message Henshall, Stuart - WCP 2001-08-21 10:43:05 RE: Sequential select queries...??