From: Andrew Dunstan <andrew@dunslane.net>
To: Michael Paquier <michael@paquier.xyz>
To: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Concurrent DROP TABLESPACE can miss a shared dependency
Date: Wed, 9 Sep 2026 11:36:44 -0400
Message-ID: <5b4c40c0-9fe1-4db3-9b34-421e5ff128f2@dunslane.net> (raw)
In-Reply-To: <aa862a24-001c-4b37-8f65-a9261ed034b9@dunslane.net>
References: <CAJTYsWXjAQFnGKzXsht3XK8KHhyhontwFJw4JAHsUSfs_ptR4g@mail.gmail.com>
<0ec2d585-a5c2-4f43-aa27-749687a262cd@dunslane.net>
<CAJTYsWV+Y9amd+0d=1UPCAo7s0zYwL-tt+Mha56UTLDo6w1MpA@mail.gmail.com>
<aqCZWTfrdDqXHXt7@paquier.xyz>
<aa862a24-001c-4b37-8f65-a9261ed034b9@dunslane.net>
On 2026-09-09 We 7:39 AM, Andrew Dunstan wrote:
>
> On 2026-09-08 Tu 7:25 PM, Michael Paquier wrote:
>> On Tue, Sep 08, 2026 at 07:28:51PM +0530, Ayush Tiwari wrote:
>>> On Mon, 7 Sept 2026 at 23:28, Andrew Dunstan <andrew@dunslane.net>
>>> wrote:
>>>> I think this should be applied as a single squashed commit,
>>>> (soon so I can rely on it for the fixes I mentioned).
>> Yeah, a backpatch seems adapted. That's a nasty problem. It's
>> unlikely going to be hit in practice, but we can say that for a bunch
>> of stuff that gets backpatched.
>>
>>>> I think it should be backpatched - all live branches have the same
>>>> problem.
>>> Agreed that this should be backpatched to all live branches.
>> Andrew, are you planning to work on it? I did not spend cycles
>> looking at the details and the command patterns involved, on the
>> premise that you would handle that. Saying that, the premise of the
>> patch feels sound with a few more additional shared locks to prevent
>> the concurrent manipulations.
>>
>
> Thanks for looking.
>
>
> Yes, planning to work on it today.
>
>
>
Pushed, thanks all.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: andrew@dunslane.net, michael@paquier.xyz, ayushtiwari.slg01@gmail.com
Subject: Re: Concurrent DROP TABLESPACE can miss a shared dependency
In-Reply-To: <5b4c40c0-9fe1-4db3-9b34-421e5ff128f2@dunslane.net>
References: <CAJTYsWXjAQFnGKzXsht3XK8KHhyhontwFJw4JAHsUSfs_ptR4g@mail.gmail.com> <0ec2d585-a5c2-4f43-aa27-749687a262cd@dunslane.net> <CAJTYsWV+Y9amd+0d=1UPCAo7s0zYwL-tt+Mha56UTLDo6w1MpA@mail.gmail.com> <aqCZWTfrdDqXHXt7@paquier.xyz> <aa862a24-001c-4b37-8f65-a9261ed034b9@dunslane.net> <5b4c40c0-9fe1-4db3-9b34-421e5ff128f2@dunslane.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox