Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 162D4B5DBDA for ; Mon, 22 Aug 2011 10:27:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 69399-04 for ; Mon, 22 Aug 2011 13:27:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 3F4E0B5DBD8 for ; Mon, 22 Aug 2011 10:27:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p7MDR3ab002705; Mon, 22 Aug 2011 09:27:03 -0400 (EDT) To: "Robert Hopek" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6171: Sockets Issue In-reply-to: <201108201531.p7KFVFaw062983@wwwmaster.postgresql.org> References: <201108201531.p7KFVFaw062983@wwwmaster.postgresql.org> Comments: In-reply-to "Robert Hopek" message dated "Sat, 20 Aug 2011 15:31:15 +0000" Date: Mon, 22 Aug 2011 09:27:03 -0400 Message-ID: <2704.1314019623@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.846 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.946 X-Spam-Level: X-Archive-Number: 201108/133 X-Sequence-Number: 30945 "Robert Hopek" writes: > Why do you have the configuration option to change the pgsql socket (which > we need to do for our jailed shell environment), but not have psql check the > postgresql.conf file for the enablement of that location change so that psql > would look there automatically? How would that work? psql does not know where the server configuration file is, and would typically not have adequate permissions to read it anyway. If you must use a socket location other than /tmp, the most comfortable way to deal with it is to build custom executables with the correct locations as their wired-in defaults. This is not really much different from the situation for a custom port number... > It seems very counter-productive. A common reason for using a nondefault connection location is to not *want* the postmaster to be reached by default-using clients. The configuration file option does have use-cases, just not yours. regards, tom lane