Re: [HACKERS] Questions about pid file creation code

2007-04-03 Thread Tom Lane
Zdenek Kotala <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> The start script does not typically have the intelligence to get this >> right, particularly not the is-shmem-still-in-use part. If you check >> the archives you will find many of us on record telling people who think >> they should re

Re: [HACKERS] Questions about pid file creation code

2007-04-03 Thread Zdenek Kotala
Tom Lane wrote: Zdenek Kotala <[EMAIL PROTECTED]> writes: Tom Lane wrote: Just to distinguish postmasters from standalone backends in the error messages. I think that's still useful. I'm not sure what you mean. It is used only in CreatePidFile function and I think that if directory is locke

Re: [HACKERS] Questions about pid file creation code

2007-04-02 Thread Tom Lane
Zdenek Kotala <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Just to distinguish postmasters from standalone backends in the error >> messages. I think that's still useful. > I'm not sure what you mean. It is used only in CreatePidFile function > and I think that if directory is locked by some

Re: [HACKERS] Questions about pid file creation code

2007-04-02 Thread Alvaro Herrera
Zdenek Kotala wrote: > (PS: Is standalone backend same as --single switch?) Yes. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. ---(end of broadcast)--- TIP 3: Have you

Re: [HACKERS] Questions about pid file creation code

2007-04-02 Thread Zdenek Kotala
Tom Lane wrote: Zdenek Kotala <[EMAIL PROTECTED]> writes: 1) Is there still some reason have negative value in postmaster.pid? Just to distinguish postmasters from standalone backends in the error messages. I think that's still useful. I'm not sure what you mean. It is used only in CreatePi

Re: [HACKERS] Questions about pid file creation code

2007-04-02 Thread Tom Lane
Zdenek Kotala <[EMAIL PROTECTED]> writes: > 1) Is there still some reason have negative value in postmaster.pid? Just to distinguish postmasters from standalone backends in the error messages. I think that's still useful. > 2) Why 100? What race condition should happen? This piece of code looks