Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: file-locking and postmaster.pid


  • From: Andrew Dunstan <andrew(at)dunslane(dot)net>
  • To: Andrew Dunstan <andrew(at)dunslane(dot)net>, korry <korry(at)appx(dot)com>, Andreas Joseph Krogh <andreak(at)officenet(dot)no>, pgsql-hackers(at)postgresql(dot)org
  • Subject: Re: file-locking and postmaster.pid
  • Date: Wed, 24 May 2006 17:06:49 -0400
  • Message-id: <4474CAE9(dot)3030604(at)dunslane(dot)net>

Alvaro Herrera wrote:
Alvaro Herrera wrote:

Note that it may fail!  This seems to indicate that some platforms do
not provide either locking mechanism.

(Which means the whole discussion is a waste of time)


Umm, no, I don't think so. It will block instead of failing unless you request a non blocking call. Failure means someone else holds the lock.

But what Tom says about NFS is probably true, and a good enough reason not to trust locking in general for this purpose, I think

cheers

andrew



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group