Tom Lane wrote:
Does fork/exec preserve lock ownership on Windows?

Not to my knowledge. On windows, there is only CreateProcess (http://msdn.microsoft.com/en-us/library/ms682425.aspx). That doesn't resemble the behavior of fork or exec at all. Basically, there is no fork, windows favors threading models. The only thing inheritable are handles, which doesn't include locked portions of a file.

The LockFileEx docs state:

"If a process terminates with a portion of a file locked or closes a file that has outstanding locks, the locks are unlocked by the operating system."

--
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to