Re: What happens if the socket lock file is deleted?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "stevej(at)stevej(dot)name" <stevej(at)stevej(dot)name>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: What happens if the socket lock file is deleted?
Date: 2026-01-29 20:38:01
Message-ID: 1266796.1769719081@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

"stevej(at)stevej(dot)name" <stevej(at)stevej(dot)name> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2026-01-29 20:40:06 Re: What happens if the socket lock file is deleted?
Previous Message stevej@stevej.name 2026-01-29 20:29:46 What happens if the socket lock file is deleted?