X-Original-To: pgsql-admin@postgresql.org Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 4E424476227 for ; Mon, 10 Mar 2003 16:22:56 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h2ALsN6P017036; Mon, 10 Mar 2003 16:54:23 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h2ALMup22688; Mon, 10 Mar 2003 16:22:56 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3HT2VNJ; Mon, 10 Mar 2003 16:22:56 -0500 Subject: Re: multiple $PGDATA dir's for one! postmaster? From: Robert Treat To: Tom Tom Cc: pgsql-admin@postgresql.org In-Reply-To: <20030306104413.66612.qmail@web14204.mail.yahoo.com> References: <20030306104413.66612.qmail@web14204.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 10 Mar 2003 16:22:56 -0500 Message-Id: <1047331376.23126.667.camel@camel> Mime-Version: 1.0 X-Archive-Number: 200303/127 X-Sequence-Number: 7768 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