pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6171: Sockets Issue
5+ messages / 5 participants
[nested] [flat]
* BUG #6171: Sockets Issue
@ 2011-08-20 15:31 Robert Hopek <rhopek@getnetworks.com>
0 siblings, 4 replies; 5+ messages in thread
From: Robert Hopek @ 2011-08-20 15:31 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 6171
Logged by: Robert Hopek
Email address: rhopek@getnetworks.com
PostgreSQL version: 8.1.23
Operating system: CentOS/RHEL
Description: Sockets Issue
Details:
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? It seems very counter-productive. While
psql, as well as functions in languages like PHP (pg_connect) allow for an
override so that you could point it at the new location (when custom
coding), existing software, such as phpPgAdmin, are stuck only looking in
/tmp for it. We consider it a bug that the server supports a configuration
option the clients do not inherently support by checking the configuration
of the server.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #6171: Sockets Issue
@ 2011-08-22 07:11 John R Pierce <pierce@hogranch.com>
parent: Robert Hopek <rhopek@getnetworks.com>
3 siblings, 0 replies; 5+ messages in thread
From: John R Pierce @ 2011-08-22 07:11 UTC (permalink / raw)
To: pgsql-bugs
On 08/20/11 8:31 AM, Robert Hopek wrote:
> The following bug has been logged online:
>
> Bug reference: 6171
> Logged by: Robert Hopek
> Email address: rhopek@getnetworks.com
> PostgreSQL version: 8.1.23
> Operating system: CentOS/RHEL
> Description: Sockets Issue
> Details:
>
> 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? It seems very counter-productive. While
> psql, as well as functions in languages like PHP (pg_connect) allow for an
> override so that you could point it at the new location (when custom
> coding), existing software, such as phpPgAdmin, are stuck only looking in
> /tmp for it. We consider it a bug that the server supports a configuration
> option the clients do not inherently support by checking the configuration
> of the server.
>
libpq running in the client user's context usually has no access to the
postgresql.conf file which is generally in a mode 700 directory owned by
the service account.
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #6171: Sockets Issue
@ 2011-08-22 12:32 Dimitri Fontaine <dimitri@2ndQuadrant.fr>
parent: Robert Hopek <rhopek@getnetworks.com>
3 siblings, 0 replies; 5+ messages in thread
From: Dimitri Fontaine @ 2011-08-22 12:32 UTC (permalink / raw)
To: Robert Hopek <rhopek@getnetworks.com>; +Cc: pgsql-bugs
"Robert Hopek" <rhopek@getnetworks.com> writes:
> coding), existing software, such as phpPgAdmin, are stuck only looking in
> /tmp for it.
Did you try host=/custom/path/to/the/socket/?
Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #6171: Sockets Issue
@ 2011-08-22 13:27 Tom Lane <tgl@sss.pgh.pa.us>
parent: Robert Hopek <rhopek@getnetworks.com>
3 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2011-08-22 13:27 UTC (permalink / raw)
To: Robert Hopek <rhopek@getnetworks.com>; +Cc: pgsql-bugs
"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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #6171: Sockets Issue
@ 2011-08-22 13:53 Kevin Grittner <Kevin.Grittner@wicourts.gov>
parent: Robert Hopek <rhopek@getnetworks.com>
3 siblings, 0 replies; 5+ messages in thread
From: Kevin Grittner @ 2011-08-22 13:53 UTC (permalink / raw)
To: Robert Hopek <rhopek@getnetworks.com>; pgsql-bugs
"Robert Hopek" <rhopek@getnetworks.com> wrote:
> 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?
We have multiple PostgreSQL clusters running on some of our
machines. How would your suggestions work in that environment?
Are any of the environment variable helpful?:
http://www.postgresql.org/docs/9.0/interactive/libpq-envars.html
-Kevin
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2011-08-22 13:53 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-08-20 15:31 BUG #6171: Sockets Issue Robert Hopek <rhopek@getnetworks.com>
2011-08-22 07:11 ` John R Pierce <pierce@hogranch.com>
2011-08-22 12:32 ` Dimitri Fontaine <dimitri@2ndQuadrant.fr>
2011-08-22 13:27 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-08-22 13:53 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
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