Re: BUG #16276: Server crash on an invalid attempt to attach a partition to an index

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: exclusion(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16276: Server crash on an invalid attempt to attach a partition to an index
Date: 2020-02-26 08:06:24
Message-ID: 20200226080624.GH17153@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Feb 25, 2020 at 04:00:01PM +0000, PG Bug reporting form wrote:
> The following query:
> create table idxpart(a int) partition by list (a);
> create index idxpart_idx on idxpart (a);
> create table idxpart1(a int);
> alter table idxpart_idx attach partition idxpart1 for values in (0);
>
> leads to a server crash with the following stack trace:
> Core was generated by `postgres: law regression [local] ALTER TABLE

Attempting to attach a table to a partitioned index? Nice thought.
Without the assertion, RangeVarCallbackForAttachIndex complains that
the relation is not an index, which is right, so I would be tempted to
just remove the culprit assertion. Any thoughts?
--
Michael

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Krishnanunni Radhakrishnan 2020-02-26 08:16:42 Re: BUG #16274: Repeated Libraries in Mac
Previous Message Daniel Gustafsson 2020-02-26 07:50:29 Re: BUG #16278: SOCKET ISSUE