"[email protected]" <[email protected]> writes: > Does PostgreSQL periodically touch the lock file so it won’t be > deleted?
Yes.
> Alternatively, does PostgreSQL simply re-create the lock file if it
> has been deleted?
No. The risk you take in that situation is that if you try to start
another postmaster, it might not realize the socket is already in use.
regards, tom lane
