public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: [email protected] <[email protected]>
Cc: [email protected]
Subject: Re: What happens if the socket lock file is deleted?
Date: Thu, 29 Jan 2026 15:38:01 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

"[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






reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: What happens if the socket lock file is deleted?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox