pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Tom Tom <luondor@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: multiple $PGDATA dir's for one! postmaster?
Date: 10 Mar 2003 16:22:56 -0500
Message-ID: <1047331376.23126.667.camel@camel> (raw)
In-Reply-To: <20030306104413.66612.qmail@web14204.mail.yahoo.com>
References: <20030306104413.66612.qmail@web14204.mail.yahoo.com>

On Thu, 2003-03-06 at 05:44, Tom Tom wrote:
> hi,
> 
> is there anyway that one postmaster will manage
> different 
> PGDATA directories (e.g. on different harddrives)?
> or is it restricted to one ?
> 

This was a little ambigous to me, so heres the possible answers I came
up with:

a) You want to run postgresql but you'd like to split your database over
two physical hard drives. You can do this with multiple $pgdata's, but
you can symlink the files/directories under $pgdata to different hard
drives.

b) You like to switch back and forth between two different data dirs for
testing purposes. AFAIK you can do this, whenever you start/stop the
postmaster just pass it a different $pgdata string and it will read from
the new $pgdata dir. You'll need to make sure that the two servers are
running on different ports, but I can't think of any other hang-ups. You
should note though that both databases will actually be seperate
processes, with there own statistics and connection child processes,
just that they both will be started with the same binary.

Robert Treat





view thread (5+ messages)

Message-ID: <1047331376.23126.667.camel@camel>
Permalink:  ../1047331376.23126.667.camel@camel/
Also on:    postgresql.org/message-id/1047331376.23126.667.camel@camel

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: xzilla@users.sourceforge.net, luondor@yahoo.com
  Subject: Re: multiple $PGDATA dir's for one! postmaster?
  In-Reply-To: <1047331376.23126.667.camel@camel>
  References: <20030306104413.66612.qmail@web14204.mail.yahoo.com> <1047331376.23126.667.camel@camel>

* 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