Re: Exposing an installation's default value of unix_socket_directory

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Cédric Villemain <cedric(dot)villemain(dot)debian(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Exposing an installation's default value of unix_socket_directory
Date: 2010-10-21 19:39:30
Message-ID: 1287689813-sup-7919@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Excerpts from Cédric Villemain's message of jue oct 21 16:01:30 -0300 2010:

> I agree this is interesting information to get, but wonder how
> pg_config can know that and it looks to me that this information as
> nothing to do in pg_config....
>
> pg_config is all about installation, socket_dir is a postgresql.conf setting.

Yeah -- how is pg_config to know? All it can tell you is what was the
compiled-in default.

pg_ctl would be nice, but we'd have to make it parse the config file
(there has been talk about that). In any case, if you don't know where
the socket is, presumably you don't know where the config file is,
either. You've just moved the problem.

Maybe you should go the SHOW route. The user could connect via TCP and
find out the socket directory that way.

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dimitri Fontaine 2010-10-21 19:46:25 Re: Exposing an installation's default value of unix_socket_directory
Previous Message daveg 2010-10-21 19:10:22 Re: PostgreSQL and HugePage