pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carolyn Lu Wong <carolyn@greatpacific.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: database location question
Date: Tue, 21 Aug 2001 10:12:44 -0400
Message-ID: <29342.998403164@sss.pgh.pa.us> (raw)
In-Reply-To: <3B81EF6B.DAE19436@greatpacific.com.au>
References: <3B81EF6B.DAE19436@greatpacific.com.au>

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



view thread (2+ messages)

Message-ID: <29342.998403164@sss.pgh.pa.us>
Permalink:  ../29342.998403164@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29342.998403164@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, carolyn@greatpacific.com.au
  Subject: Re: database location question
  In-Reply-To: <29342.998403164@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox