Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5F58B6337C5 for ; Wed, 13 Jan 2010 22:01:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 24401-08 for ; Thu, 14 Jan 2010 02:01:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id AA3EA632E2A for ; Wed, 13 Jan 2010 22:01:56 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id o0E21ser075151 for ; Thu, 14 Jan 2010 02:01:54 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id o0E21sr7075150; Thu, 14 Jan 2010 02:01:54 GMT (envelope-from www) Date: Thu, 14 Jan 2010 02:01:54 GMT Message-Id: <201001140201.o0E21sr7075150@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5276: pg_ctl reads data directory on -D instead of postgresql.conf directoryh From: "James Bellinger" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=x tagged_above=-10 required=5 WHITELISTED X-Spam-Level: X-Archive-Number: 201001/133 X-Sequence-Number: 25637 The following bug has been logged online: Bug reference: 5276 Logged by: James Bellinger Email address: jfb@zer7.com PostgreSQL version: 8.4.2 Operating system: Ubuntu 9.10 Description: pg_ctl reads data directory on -D instead of postgresql.conf directoryh Details: While on startup, pg_ctl (correctly) looks in the directory specified by -D for postgresql.conf, and then uses that to determine the data directory, when stopping it actually expects the directories to be the same and in doing so looks for the PID file in the given directory. As a result, on start one needs to use the .conf directory with -D, and on stop the data directory. It's not a big deal, but for consistency's sake it ought to read the .conf file to get the data directory on stop.