Re: BUG #19078: Segfaults in tts_minimal_store_tuple() following pg_upgrade

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Yuri Zamyatin <yuri(at)yrz(dot)am>, Jeff Davis <pgsql(at)j-davis(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19078: Segfaults in tts_minimal_store_tuple() following pg_upgrade
Date: 2025-10-16 03:29:22
Message-ID: CA+HiwqHhGW6MiYjYhodtcDA4_pK_QZw7M=n_BiRim=JMZv931A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Oct 16, 2025 at 7:51 AM David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
> On Thu, 16 Oct 2025 at 11:45, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
> >
> > On Thu, 16 Oct 2025 at 03:21, Yuri Zamyatin <yuri(at)yrz(dot)am> wrote:
> > > In 1-2 minutes, 5 processes died with segfault.

Thanks Yuri for the report and the test case.

> >
> > Perfect. Thank you.
> >
> > It seems to be some more forgotten EPQ stuff from d47cbf474. Amit got
> > some of these in 8741e48e5, but evidently the test case didn't do
> > pruning during execution, (only init plan pruning) so the partition
> > directory wasn't needed.
>
> I forgot to mention, this isn't the same thing as the
> tts_minimal_store_tuple() issue you first reported, so if there is a
> problem there, this one has nothing to do with it.

Thanks again, David.

I've attached an updated patch with a test case.

--
Thanks, Amit Langote

Attachment Content-Type Size
v2-0001-Fix-EPQ-crash-from-missing-partition-directory-in.patch application/octet-stream 4.3 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Rowley 2025-10-16 04:04:35 Re: BUG #19078: Segfaults in tts_minimal_store_tuple() following pg_upgrade
Previous Message Michael Paquier 2025-10-16 01:53:07 Re: TRAP: failed Assert("outerPlan != NULL") in postgres_fdw.c