pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedmultiple instances on one box?
7+ messages / 5 participants
[nested] [flat]
* multiple instances on one box?
@ 2002-06-03 18:30 Tim Ellis <Tim.Ellis@gamet.com>
2002-06-03 19:18 ` Re: multiple instances on one box? Andrew Perrin <clists@perrin.socsci.unc.edu>
2002-06-03 21:00 ` Re: multiple instances on one box? Naomi Walker <nwalker@eldocomp.com>
2002-06-03 23:53 ` Re: multiple instances on one box? Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 3 replies; 7+ messages in thread
From: Tim Ellis @ 2002-06-03 18:30 UTC (permalink / raw)
To: pgsql-admin
Hi,
Hopefully not a FAQ, but I wonder, how do I start multiple Postgres
instances on one computer?
To elaborate, I want to start one Postgres listening on say 7000 for
$DATA=/opt/pgdata1 and another Postgres listening on say 7100 for
$DATA=/opt/pgdata2.
Thanks,
Tim Ellis
DBA, Gamet
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: multiple instances on one box?
2002-06-03 18:30 multiple instances on one box? Tim Ellis <Tim.Ellis@gamet.com>
@ 2002-06-03 19:18 ` Andrew Perrin <clists@perrin.socsci.unc.edu>
2002-06-03 19:53 ` Re: multiple instances on one box? Sander Steffann <sander@steffann.nl>
2002-06-03 23:53 ` Re: multiple instances on one box? Tim Ellis <Tim.Ellis@gamet.com>
2 siblings, 2 replies; 7+ messages in thread
From: Andrew Perrin @ 2002-06-03 19:18 UTC (permalink / raw)
To: Tim Ellis <Tim.Ellis@gamet.com>; +Cc: pgsql-admin
What's the reason for doing this? Just use separate databases -- if
necessary, with different users given permissions on each -- in the same
postmaster instance.
ap
----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
On Mon, 3 Jun 2002, Tim Ellis wrote:
> Hi,
>
> Hopefully not a FAQ, but I wonder, how do I start multiple Postgres
> instances on one computer?
>
> To elaborate, I want to start one Postgres listening on say 7000 for
> $DATA=/opt/pgdata1 and another Postgres listening on say 7100 for
> $DATA=/opt/pgdata2.
>
> Thanks,
> Tim Ellis
> DBA, Gamet
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: multiple instances on one box?
2002-06-03 18:30 multiple instances on one box? Tim Ellis <Tim.Ellis@gamet.com>
2002-06-03 19:18 ` Re: multiple instances on one box? Andrew Perrin <clists@perrin.socsci.unc.edu>
@ 2002-06-03 19:53 ` Sander Steffann <sander@steffann.nl>
1 sibling, 0 replies; 7+ messages in thread
From: Sander Steffann @ 2002-06-03 19:53 UTC (permalink / raw)
To: Andrew Perrin <clists@perrin.socsci.unc.edu>; Tim Ellis <Tim.Ellis@gamet.com>; +Cc: pgsql-admin
I have seen one reason myself for this: running multiple versions of
PostgreSQL on one machine. I have tried this once myself, to try out a new
version while still providing our customers with the old version.
Sander.
----- Original Message -----
From: "Andrew Perrin" <clists@perrin.socsci.unc.edu>
To: "Tim Ellis" <Tim.Ellis@gamet.com>
Cc: <pgsql-admin@postgresql.org>
Sent: Monday, June 03, 2002 9:18 PM
Subject: Re: [ADMIN] multiple instances on one box?
> What's the reason for doing this? Just use separate databases -- if
> necessary, with different users given permissions on each -- in the same
> postmaster instance.
>
> ap
>
> ----------------------------------------------------------------------
> Andrew J Perrin - http://www.unc.edu/~aperrin
> Assistant Professor of Sociology, U of North Carolina, Chapel Hill
> clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
>
>
> On Mon, 3 Jun 2002, Tim Ellis wrote:
>
> > Hi,
> >
> > Hopefully not a FAQ, but I wonder, how do I start multiple Postgres
> > instances on one computer?
> >
> > To elaborate, I want to start one Postgres listening on say 7000 for
> > $DATA=/opt/pgdata1 and another Postgres listening on say 7100 for
> > $DATA=/opt/pgdata2.
> >
> > Thanks,
> > Tim Ellis
> > DBA, Gamet
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo@postgresql.org so that your
> > message can get through to the mailing list cleanly
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: multiple instances on one box?
2002-06-03 18:30 multiple instances on one box? Tim Ellis <Tim.Ellis@gamet.com>
2002-06-03 19:18 ` Re: multiple instances on one box? Andrew Perrin <clists@perrin.socsci.unc.edu>
@ 2002-06-03 23:53 ` Tim Ellis <Tim.Ellis@gamet.com>
1 sibling, 0 replies; 7+ messages in thread
From: Tim Ellis @ 2002-06-03 23:53 UTC (permalink / raw)
To: Andrew Perrin <clists@perrin.socsci.unc.edu>; +Cc: pgsql-admin
On Mon, 3 Jun 2002 15:18:26 -0400 (EDT)
Andrew Perrin <clists@perrin.socsci.unc.edu> wrote:
> > To elaborate, I want to start one Postgres listening on say 7000 for
> > $DATA=/opt/pgdata1 and another Postgres listening on say 7100 for
> > $DATA=/opt/pgdata2.
>
> What's the reason for doing this? Just use separate databases -- if
> necessary, with different users given permissions on each -- in the same
> postmaster instance.
Easy mobility of databases from one computer to another.
Theory says different databases within one instance and different
instances have the same expressive power. Therefore, theory would dictate,
moving a database between instances is as easy as moving instances between
computers.
Reality is that moving a database from one instance to another is more
difficult than moving an instance from one computer to another. The former
requires specialised tools that are complicated and error-prone. The
latter requires generic tools (you know, like 'scp') that are simple.
In saying that, I make an assumption: that Postgres is similar to Sybase
or Oracle and that once a database achieves a certain complexity, the
tools (that allow database migration on small example databases) don't
scale to multi-gigabyte multi-hundred relations databases.
YMMV.
I'm still interested in knowing if running multiple instances on a single
computer is possible and how to do it. :)
--
Tim Ellis
DBA, Gamet
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: multiple instances on one box?
2002-06-03 18:30 multiple instances on one box? Tim Ellis <Tim.Ellis@gamet.com>
@ 2002-06-03 21:00 ` Naomi Walker <nwalker@eldocomp.com>
2002-06-03 21:05 ` Re: multiple instances on one box? Andrew Perrin <clists@perrin.socsci.unc.edu>
2 siblings, 1 reply; 7+ messages in thread
From: Naomi Walker @ 2002-06-03 21:00 UTC (permalink / raw)
To: Andrew Perrin <clists@perrin.socsci.unc.edu>; Tim Ellis <Tim.Ellis@gamet.com>; +Cc: pgsql-admin
At 12:18 PM 6/3/2002 , Andrew Perrin wrote:
>What's the reason for doing this? Just use separate databases -- if
>necessary, with different users given permissions on each -- in the same
>postmaster instance.
We will be using separate instances for failover purposes in our clustered
environment.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: multiple instances on one box?
2002-06-03 18:30 multiple instances on one box? Tim Ellis <Tim.Ellis@gamet.com>
2002-06-03 21:00 ` Re: multiple instances on one box? Naomi Walker <nwalker@eldocomp.com>
@ 2002-06-03 21:05 ` Andrew Perrin <clists@perrin.socsci.unc.edu>
0 siblings, 0 replies; 7+ messages in thread
From: Andrew Perrin @ 2002-06-03 21:05 UTC (permalink / raw)
To: Naomi Walker <nwalker@eldocomp.com>; +Cc: Tim Ellis <Tim.Ellis@gamet.com>; pgsql-admin
I won't claim to understand that fully, but just would say that I'd be
worried if a postmaster went down -- worried enough that I'd want to have
backup hardware in a mission-critical situation, not just a backup
postmaster instance. What's the theoretical case in which a postmaster
dies or is inaccessible but the same machine could serve the same database
with a different process?
ap
----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
On Mon, 3 Jun 2002, Naomi Walker wrote:
> At 12:18 PM 6/3/2002 , Andrew Perrin wrote:
> >What's the reason for doing this? Just use separate databases -- if
> >necessary, with different users given permissions on each -- in the same
> >postmaster instance.
>
> We will be using separate instances for failover purposes in our clustered
> environment.
>
>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: multiple instances on one box?
2002-06-03 18:30 multiple instances on one box? Tim Ellis <Tim.Ellis@gamet.com>
@ 2002-06-03 23:53 ` Tom Lane <tgl@sss.pgh.pa.us>
2 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2002-06-03 23:53 UTC (permalink / raw)
To: Tim Ellis <Tim.Ellis@gamet.com>; +Cc: pgsql-admin
Tim Ellis <Tim.Ellis@gamet.com> writes:
> Hopefully not a FAQ, but I wonder, how do I start multiple Postgres
> instances on one computer?
Isn't it in the FAQ? Just give them different port numbers and
data directories, and away you go. (As long as you don't exceed
kernel limits on total size of shared memory, total number of
semaphores, open files, etc.)
I concur with Andrew Perrin's concerns about why you are doing this,
though. I can think of a couple of valid reasons:
1. You want to run multiple Postgres versions. (That's why I have
three or four postmasters running here.)
2. You want airtight separation between two instances, eg because
you are doing C-code development in one of the instances and so you
occasionally crash it.
But as a mechanism for redundancy against hardware failures it doesn't
seem particularly useful.
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2002-06-03 23:53 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-06-03 18:30 multiple instances on one box? Tim Ellis <Tim.Ellis@gamet.com>
2002-06-03 19:18 ` Andrew Perrin <clists@perrin.socsci.unc.edu>
2002-06-03 19:53 ` Sander Steffann <sander@steffann.nl>
2002-06-03 23:53 ` Tim Ellis <Tim.Ellis@gamet.com>
2002-06-03 21:00 ` Naomi Walker <nwalker@eldocomp.com>
2002-06-03 21:05 ` Andrew Perrin <clists@perrin.socsci.unc.edu>
2002-06-03 23:53 ` Tom Lane <tgl@sss.pgh.pa.us>
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