pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: David Rowley <dgrowleyml@gmail.com>
To: Andrey Rachitskiy <pl0h0yp1@gmail.com>
Cc: Vladimir Savin <vladimir@encord.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: PG18: use-after-free in exec partition pruning after an EPQ recheck in LockRows
Date: Fri, 9 Oct 2026 10:28:31 -0400
Message-ID: <ae28b629-c48d-4752-aa89-d4cb3121ed08@dunslane.net> (raw)
In-Reply-To: <CAApHDvpFu3C5XK4J1LUdgDPpp-G+VkqLr+ZRFZ6oTMDaXLwkBw@mail.gmail.com>
References: <CAP2G_gGpV=rKMLuET4RW-qO41GvBvi6Czsjsj16eT9hAwHxG6w@mail.gmail.com>
	<CAB8bMiv=f8U4L=JtzLe+H4ygYDnHD43QOq9DCR+U5VzSdGafag@mail.gmail.com>
	<CAApHDvqXA-fFSFDKdfmUP-MsD22DursxvV7XoDUk=6KwBq5e4A@mail.gmail.com>
	<CAB8bMituD9yuWp1-EOkG7ohLv32zRX0oF=huXrvf-24C89rXvg@mail.gmail.com>
	<CAApHDvpFu3C5XK4J1LUdgDPpp-G+VkqLr+ZRFZ6oTMDaXLwkBw@mail.gmail.com>


On 2026-10-08 Th 6:04 PM, David Rowley wrote:
> On Thu, 8 Oct 2026 at 21:30, Andrey Rachitskiy <pl0h0yp1@gmail.com> wrote:
>> Agreed. Skipping on es_epq_active was answering the wrong question.
>> The invariant is that InitExecPartitionPruneContexts() must not run
>> twice on a shared PartitionPruneState.
>> Your initialized flag is the right fix.
> Pushed.
>

per buildfarm, this is an ABI break on release 18, apparently needs an 
update to .abi-compliance-history


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com







view thread (14+ messages)  latest in thread

Message-ID: <ae28b629-c48d-4752-aa89-d4cb3121ed08@dunslane.net>
Permalink:  ../ae28b629-c48d-4752-aa89-d4cb3121ed08@dunslane.net/
Also on:    postgresql.org/message-id/ae28b629-c48d-4752-aa89-d4cb3121ed08@dunslane.net

 · 

reply

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-bugs@postgresql.org
  Cc: andrew@dunslane.net, dgrowleyml@gmail.com, pl0h0yp1@gmail.com, vladimir@encord.com
  Subject: Re: PG18: use-after-free in exec partition pruning after an EPQ recheck in LockRows
  In-Reply-To: <ae28b629-c48d-4752-aa89-d4cb3121ed08@dunslane.net>
  References: <CAP2G_gGpV=rKMLuET4RW-qO41GvBvi6Czsjsj16eT9hAwHxG6w@mail.gmail.com> <CAB8bMiv=f8U4L=JtzLe+H4ygYDnHD43QOq9DCR+U5VzSdGafag@mail.gmail.com> <CAApHDvqXA-fFSFDKdfmUP-MsD22DursxvV7XoDUk=6KwBq5e4A@mail.gmail.com> <CAB8bMituD9yuWp1-EOkG7ohLv32zRX0oF=huXrvf-24C89rXvg@mail.gmail.com> <CAApHDvpFu3C5XK4J1LUdgDPpp-G+VkqLr+ZRFZ6oTMDaXLwkBw@mail.gmail.com> <ae28b629-c48d-4752-aa89-d4cb3121ed08@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