pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Hopek <rhopek@getnetworks.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6171: Sockets Issue
Date: Mon, 22 Aug 2011 09:27:03 -0400
Message-ID: <2704.1314019623@sss.pgh.pa.us> (raw)
In-Reply-To: <201108201531.p7KFVFaw062983@wwwmaster.postgresql.org>
References: <201108201531.p7KFVFaw062983@wwwmaster.postgresql.org>

"Robert Hopek" <rhopek@getnetworks.com> 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



view thread (5+ messages)  latest in thread

Message-ID: <2704.1314019623@sss.pgh.pa.us>
Permalink:  ../2704.1314019623@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2704.1314019623@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rhopek@getnetworks.com
  Subject: Re: BUG #6171: Sockets Issue
  In-Reply-To: <2704.1314019623@sss.pgh.pa.us>
  References: <201108201531.p7KFVFaw062983@wwwmaster.postgresql.org> <2704.1314019623@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox