What happens if the socket lock file is deleted?

From: "stevej(at)stevej(dot)name" <stevej(at)stevej(dot)name>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: What happens if the socket lock file is deleted?
Date: 2026-01-29 20:29:46
Message-ID: FA028C3B-70E0-4185-B581-72EDC1FB6847@stevej.name
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

In software I have developed separately, I have noticed that most systems will periodically delete files within the temporary directory hierarchy that have not been accessed recently, and that includes lock files for long running processes. I have never noticed the lock file associated with a postgreSQL socket be missing though.

Does PostgreSQL periodically touch the lock file so it won’t be deleted? Alternatively, does PostgreSQL simply re-create the lock file if it has been deleted? I know the documentation says to never “manually”’delete one of those lock files.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2026-01-29 20:38:01 Re: What happens if the socket lock file is deleted?
Previous Message PetSerAl 2026-01-29 19:04:25 Re: About backups