Re: pg_ctl and port number detection
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Andrew Dunstan <andrew@dunslane.net>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-12-20T05:10:38Z
Lists: pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes: >> 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. No. If it goes in, it should go in as the third line. The shmem key data is private to the server --- we do not want external programs assuming anything at all about the private part of postmaster.pid. regards, tom lane