Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 897E7475DB8 for ; Mon, 3 Jun 2002 20:04:11 -0400 (EDT) Received: from linuxmail.lgsinc.com (unknown [12.22.4.163]) by postgresql.org (Postfix) with ESMTP id B606A475F42 for ; Mon, 3 Jun 2002 20:01:11 -0400 (EDT) Received: from timetop (sun.lgsinc.com [12.22.4.165]) by linuxmail.lgsinc.com (8.11.0/8.8.7) with SMTP id g53Nxx106037; Mon, 3 Jun 2002 16:59:59 -0700 Date: Mon, 3 Jun 2002 16:53:37 -0700 From: Tim Ellis To: Andrew Perrin Cc: pgsql-admin@postgresql.org Subject: Re: multiple instances on one box? Message-Id: <20020603165337.487138be.Tim.Ellis@gamet.com> In-Reply-To: References: <20020603113049.7a45a143.Tim.Ellis@gamet.com> Organization: Gamet X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i586-mandrake-linux-gnu) WerdupHomey: 3.14159265358979323 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200206/16 X-Sequence-Number: 4451 On Mon, 3 Jun 2002 15:18:26 -0400 (EDT) Andrew Perrin 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