Re: BUG #15677: Crash while deleting from partitioned table
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: infernorb@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Date: 2019-06-28T21:56:03Z
Lists: pgsql-bugs
Attachments
- partition-eval-plan-qual.spec (text/plain)
On 2019-Mar-11, Amit Langote wrote: > To reproduce, use these steps (needs 2 sessions to invoke EvalPlanQual at > all): > > Setup: > > create table p (a int) partition by list (a); > create table p1 partition of p for values in (1); > insert into p values (1); > > Session 1: > > begin; > update p set a = a; > > Session 2: > > with u as (update p set a = a returning p.*) update p set a = u.a from u; > <blocks> Hmmm ... I rewrote to this isolationtester spec and doesn't reproduce a problem in master. I am probably missing something ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix EvalPlanQualStart to handle partitioned result rels correctly.
- 1b5bbe4bcc91 10.8 landed
- b291488da513 11.3 landed
- a8cb8f124679 12.0 landed