Re: "Bogus data in lock file" shouldn't be FATAL? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: "Bogus data in lock file" shouldn't be FATAL?
Date
Msg-id 1281973704-sup-2598@alvh.no-ip.org
Whole thread Raw
In response to "Bogus data in lock file" shouldn't be FATAL?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Excerpts from Tom Lane's message of lun ago 16 11:18:32 -0400 2010:

> We could perhaps address that risk another way: after having written
> postmaster.pid, try to read it back to verify that it contains what we
> wrote, and abort if not.  Then, if we can't read it during startup,
> it's okay to assume there is no conflicting postmaster.

Makes sense.

BTW some past evidence:
http://archives.postgresql.org/message-id/e3e180dc0905070719q58136caai23fbb777fd3c0df7@mail.gmail.com

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


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Git migration timeline
Next
From: Alvaro Herrera
Date:
Subject: Re: "Bogus data in lock file" shouldn't be FATAL?