pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedmultiple $PGDATA dir's for one! postmaster?
5+ messages / 4 participants
[nested] [flat]
* multiple $PGDATA dir's for one! postmaster?
@ 2003-03-06 10:44 Tom Tom <luondor@yahoo.com>
2003-03-10 20:12 ` Re: multiple $PGDATA dir's for one! postmaster? Artur Pietruk <arturp@plukwa.net>
2003-03-10 21:07 ` Re: multiple $PGDATA dir's for one! postmaster? Andrew Sullivan <andrew@libertyrms.info>
2003-03-10 21:22 ` Re: multiple $PGDATA dir's for one! postmaster? Robert Treat <xzilla@users.sourceforge.net>
0 siblings, 3 replies; 5+ messages in thread
From: Tom Tom @ 2003-03-06 10:44 UTC (permalink / raw)
To: pgsql-admin
hi,
is there anyway that one postmaster will manage
different
PGDATA directories (e.g. on different harddrives)?
or is it restricted to one ?
thanks
christian
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: multiple $PGDATA dir's for one! postmaster?
2003-03-06 10:44 multiple $PGDATA dir's for one! postmaster? Tom Tom <luondor@yahoo.com>
@ 2003-03-10 20:12 ` Artur Pietruk <arturp@plukwa.net>
2 siblings, 0 replies; 5+ messages in thread
From: Artur Pietruk @ 2003-03-10 20:12 UTC (permalink / raw)
To: Tom Tom <luondor@yahoo.com>; +Cc: pgsql-admin
On Thu, Mar 06, 2003 at 02:44:13AM -0800, 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 ?
Short answer: yes, RTFM, man postmaster ;-). (You can specify
different database cluster with -D option, as long as they do not share
port - read manual.)
Best regards,
--
--- Artur Pietruk
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: multiple $PGDATA dir's for one! postmaster?
2003-03-06 10:44 multiple $PGDATA dir's for one! postmaster? Tom Tom <luondor@yahoo.com>
@ 2003-03-10 21:07 ` Andrew Sullivan <andrew@libertyrms.info>
2 siblings, 0 replies; 5+ messages in thread
From: Andrew Sullivan @ 2003-03-10 21:07 UTC (permalink / raw)
To: pgsql-admin
On Thu, Mar 06, 2003 at 02:44:13AM -0800, Tom Tom wrote:
> is there anyway that one postmaster will manage
> different
> PGDATA directories (e.g. on different harddrives)?
> or is it restricted to one ?
You can use more than one. Check out initlocation.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: multiple $PGDATA dir's for one! postmaster?
2003-03-06 10:44 multiple $PGDATA dir's for one! postmaster? Tom Tom <luondor@yahoo.com>
@ 2003-03-10 21:22 ` Robert Treat <xzilla@users.sourceforge.net>
2 siblings, 0 replies; 5+ messages in thread
From: Robert Treat @ 2003-03-10 21:22 UTC (permalink / raw)
To: Tom Tom <luondor@yahoo.com>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* multiple $PGDATA dir's for one! postmaster?
@ 2003-03-10 17:07 Tom Tom <luondor@yahoo.com>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Tom @ 2003-03-10 17:07 UTC (permalink / raw)
To: pgsql-admin
hi,
is there anyway that one postmaster will manage
different
PGDATA directories (e.g. on different harddrives)?
or is it restricted to one ?
thanks
christian
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-03-10 21:22 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-06 10:44 multiple $PGDATA dir's for one! postmaster? Tom Tom <luondor@yahoo.com>
2003-03-10 20:12 ` Artur Pietruk <arturp@plukwa.net>
2003-03-10 21:07 ` Andrew Sullivan <andrew@libertyrms.info>
2003-03-10 21:22 ` Robert Treat <xzilla@users.sourceforge.net>
2003-03-10 17:07 multiple $PGDATA dir's for one! postmaster? Tom Tom <luondor@yahoo.com>
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