X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 116E29DC81E for ; Wed, 14 Dec 2005 11:33:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80662-07 for ; Wed, 14 Dec 2005 11:33:15 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7869A9DC9C0 for ; Wed, 14 Dec 2005 11:33:08 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBEFXDgU019601; Wed, 14 Dec 2005 10:33:13 -0500 (EST) To: Hannes Dorbath cc: pgsql-admin@postgresql.org Subject: Re: Configfiles outside initDB dir In-reply-to: References: Comments: In-reply-to Hannes Dorbath message dated "Wed, 14 Dec 2005 14:59:46 +0100" Date: Wed, 14 Dec 2005 10:33:13 -0500 Message-ID: <19600.1134574393@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.002 required=5 tests=[AWL=0.002] X-Spam-Score: 0.002 X-Spam-Level: X-Archive-Number: 200512/123 X-Sequence-Number: 19843 Hannes Dorbath writes: > I want to have postgresql.conf and pg_hba.conf outside the directory > created by initDB. > $PGDATA points to the directory the config files reside in (and nothing > else) and in postgresql.conf the option "data_directory" is set to the > directory containing the cluster created by initDB. I can use pg_ctl > start but pg_ctl stop failes as it expects the pid file in the dir with > the config files. I think you want pg_ctl's PGDATA pointing to the data_directory. pg_ctl does not know anything about the config files, and in particular is not smart enough to parse them to find the data_directory value. regards, tom lane