Re: On file locking

Giles Lean <giles@nemeton.com.au>

From: Giles Lean <giles@nemeton.com.au>
To: Kevin Brown <kevin@sysexperts.com>, PostgreSQL Development <pgsql-hackers@postgresql.org>
Date: 2003-01-31T05:03:22Z
Lists: pgsql-hackers
> This could be cleaned up rather dramatically if we were to use one of
> the file locking primitives supplied by the OS to grab an exclusive
> lock on the file, ...
> ...
> The first question for the group is: is it worth doing that?

In the past it has been proposed and declined -- there is some stuff
in the archives.  While it would be beneficial to installations using
local data it would introduce new failure modes for installations
using NFS.

Regards,

Giles