Tom Lane wrote:
> Andrew Chernow <ac@esilo.com> writes:
>> Be careful. From LockFileEx docs:
>
>> "However, the time it takes for the operating system to unlock these
>> locks depends upon available system resources. Therefore, it is
>> recommended that your process explicitly unlock all files it has locked
>> when it terminates. If this is not done, access to these files may be
>> denied if the operating system has not yet unlocked them."
>
> ROTFL ... so to translate: "If your program crashes, please release
> locks before crashing."
Obviously that wasn't the intent of the above, but I guess it is the net
effect. Either way, I don't think it's a huge problem, it just means
that PG may not be able to restart for a few seconds until the OS has
time to clean-up the locks.