Re: File locks for data directory lockfile in the context of Linux namespaces - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Re: File locks for data directory lockfile in the context of Linux namespaces
Date
Msg-id 45swup77t7utfy33lu47mvkb4exzm3oeakz25abqxuvmsyzt3c@5umrpfgc3ypg
Whole thread Raw
In response to File locks for data directory lockfile in the context of Linux namespaces  (Dmitry Dolgov <9erthalion6@gmail.com>)
List pgsql-hackers
> On Fri, Dec 19, 2025 at 03:27:40PM +0100, Dmitry Dolgov wrote:
> Hi,
> 
> TL;DR This is a proposal to use file locking with a data directory lockfile at
> startup, which helps to avoid potential Linux PID namespace visibility issues.

Rebased and fixed a silly error with the flag availability. Feedback is
still welcome.

Attachment

pgsql-hackers by date:

Previous
From: "Jelte Fennema-Nio"
Date:
Subject: Re: Make copyObject work in C++
Next
From: Andrey Silitskiy
Date:
Subject: Re: Exit walsender before confirming remote flush in logical replication