Re: Prevent an error on attaching/creating a DSM/DSA from an interrupt handler.

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Rahila Syed <rahilasyed90(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Tomas Vondra <tomas(at)vondra(dot)me>
Subject: Re: Prevent an error on attaching/creating a DSM/DSA from an interrupt handler.
Date: 2025-05-01 10:08:09
Message-ID: 18F24077-BCF2-4892-A9F6-72DE9AD254BC@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 1 May 2025, at 00:04, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>
> On Wed, Apr 30, 2025 at 5:24 PM Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
>> Attached is a current v4 with a few small tweaks.
>
> Sorry to turn up late here, but I strongly disagree with the notion
> that this is a bug in the DSM or DSA code. It seems to me that it is
> the caller's responsibility to provide a valid resource owner, not the
> job of the called code to ignore the resource owner when it's
> unusable. I suspect that there are many other parts of the system that
> rely on the ResourceOwner machinery which likewise assume that the
> ResourceOwner that they are passed is valid.

Thanks for review, I’m currently travelling over the extended weekend but will rework the approach shortly when back at the office.

./daniel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2025-05-01 10:13:43 Re: Fix outdated comments for IndexInfo
Previous Message Richard Guo 2025-05-01 08:33:13 Re: Reduce "Var IS [NOT] NULL" quals during constant folding