Re: unix_socket_directory isn't used by all bin tools

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Jerome Alet <alet(at)unice(dot)fr>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: unix_socket_directory isn't used by all bin tools
Date: 2001-03-31 08:38:29
Message-ID: Pine.LNX.4.30.0103311032090.1120-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jerome Alet writes:

> > The configuration file is only for the server; the clients don't see it.
> > Client tools can use the PGHOST environment variable or the -h option, or
> > whatever else the client has implemented.
>
> I disagree partially, correct me if I'm wrong:
>
> Unix domain sockets are not available accross the network, so in this
> particular case (postmaster not listening on tcp) the client and the
> server are on the same machine, it's mandatory. That's why I think that
> these programs should take care of the server's configuration if it's
> available (and no -h or PGHOST option)

I'm not sure exactly what you disagree with. The feature "configuration
file" is certainly operating as designed and as documented. If you want
to propose an additional feature, then you're free to do that, but there
is no way we'll let client programs read the server's configuration file,
they just don't have a business there (if they can find it at all).

If you want to change the location of the local socket file for both
client and server then you can make it a compile-time change. The primary
reason for it being a run-time option, too, was for "virtual hosting"
setups, and in that case it's doubtful whether a global client-readable
configuration file would even be appropriate.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2001-03-31 23:11:16 segmentation fault in psql
Previous Message Tom Lane 2001-03-31 04:35:31 Re: BUG: Each UNION | EXCEPT | INTERSECT query must have the same number of columns.