| From: | Florian Pflug <fgp(at)phlo(dot)org> |
|---|---|
| To: | Magnus Hagander <magnus(at)hagander(dot)net> |
| Cc: | Bruce Momjian <bruce(at)momjian(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: pg_ctl and port number detection |
| Date: | 2010-12-20 00:04:48 |
| Message-ID: | B9FF11C0-6DFA-409B-AE5D-91D78C651B47@phlo.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Dec19, 2010, at 21:10 , Magnus Hagander wrote:
> On Sun, Dec 19, 2010 at 20:16, Florian Pflug <fgp(at)phlo(dot)org> wrote:
>> On Dec19, 2010, at 00:54 , Bruce Momjian wrote:
>>> I wonder if we should write the port number as the 4th line in
>>> postmaster.pid and return in a few major releases and use that. We
>>> could fall back and use our existing code if there is no 4th line.
>>
>> What if the postmaster instead created a second unix socket in its
>> data directory? For security reason, it'd probably need to set
>> the permissions to 0600, but it'd still allow maintenance tools to
>> connect reliably if they only knew the data directory.
>>
>> Don't know if that'd work on windows, though - I have no idea if
>> we even support something similar to unix sockets there, and if so,
>> it it lives in the filesystem.
>
> We don't, and AFAIK there's nothing that lives in the filesystem. You
> have named pipes that live in the namespace, but not within
> directories in the filesystem.
Hm, OK, that pretty much kills the idea. Having to special-case
windows seems less appealing than the other options.
best regards,
Florian Pflug
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tomas Vondra | 2010-12-20 00:46:06 | Re: keeping a timestamp of the last stats reset (for a db, table and function) |
| Previous Message | Itagaki Takahiro | 2010-12-20 00:03:56 | Re: Extensions, patch v20 (bitrot fixes) |