Re: File locks for data directory lockfile in the context of Linux namespaces

From: Dmitry Dolgov <9erthalion6(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: File locks for data directory lockfile in the context of Linux namespaces
Date: 2026-01-17 15:26:02
Message-ID: 45swup77t7utfy33lu47mvkb4exzm3oeakz25abqxuvmsyzt3c@5umrpfgc3ypg
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
v2-0001-Use-open-file-description-locks-for-data-director.patch text/plain 10.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Silitskiy 2026-01-17 15:46:24 Re: Exit walsender before confirming remote flush in logical replication
Previous Message Jelte Fennema-Nio 2026-01-17 15:25:51 Re: Make copyObject work in C++