Re: [HACKERS] TODO item for pg_ctl and server detection

2011-01-01 Thread Bruce Momjian
Peter Eisentraut wrote: > On fre, 2010-12-31 at 17:26 -0500, Bruce Momjian wrote: > > Patch applied, and TODO item removed because patch mostly detects if a > > stale postmaster created the postmaster.pid file. The TODO was: > > Please fix this new compiler warning: > > pg_ctl.c:1787: warning: i

Re: [HACKERS] TODO item for pg_ctl and server detection

2011-01-01 Thread Peter Eisentraut
On fre, 2010-12-31 at 17:26 -0500, Bruce Momjian wrote: > Patch applied, and TODO item removed because patch mostly detects if a > stale postmaster created the postmaster.pid file. The TODO was: Please fix this new compiler warning: pg_ctl.c:1787: warning: implicit declaration of function ‘time’

Re: [HACKERS] TODO item for pg_ctl and server detection

2010-12-31 Thread Bruce Momjian
Bruce Momjian wrote: > Bruce Momjian wrote: > > Yes, that was my calculus too. I realized that we create session ids by > > merging the process id and backend start time, so I went ahead and added > > the postmaster start time epoch to the postmaster.pid file. While there > > is no way to pass ba

Re: [HACKERS] TODO item for pg_ctl and server detection

2010-12-29 Thread Bruce Momjian
Bruce Momjian wrote: > Yes, that was my calculus too. I realized that we create session ids by > merging the process id and backend start time, so I went ahead and added > the postmaster start time epoch to the postmaster.pid file. While there > is no way to pass back the postmaster start time fr

Re: [HACKERS] TODO item for pg_ctl and server detection

2010-12-28 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian writes: > > While I am working on pg_ctl, I saw this TODO item: > > Have the postmaster write a random number to a file on startup that > > pg_ctl checks against the contents of a pg_ping response on its initial > > connection (without login) > >

Re: [HACKERS] TODO item for pg_ctl and server detection

2010-12-27 Thread Tom Lane
Bruce Momjian writes: > While I am working on pg_ctl, I saw this TODO item: > Have the postmaster write a random number to a file on startup that > pg_ctl checks against the contents of a pg_ping response on its initial > connection (without login) > This will

[HACKERS] TODO item for pg_ctl and server detection

2010-12-24 Thread Bruce Momjian
While I am working on pg_ctl, I saw this TODO item: Have the postmaster write a random number to a file on startup that pg_ctl checks against the contents of a pg_ping response on its initial connection (without login) This will protect against connecti