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

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Amit Langote <amitlangote09@gmail.com>
Cc: exclusion@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>, Alvaro Herrera <alvherre@2ndquadrant.com>
Date: 2020-03-02T03:39:21Z
Lists: pgsql-bugs
On Thu, Feb 27, 2020 at 09:49:52PM +0900, Michael Paquier wrote:
> Yeah, I have been considering this option, still I am hesitating about
> what to do on HEAD.  My own take would be to fix this issue on all
> branches by removing the assertion, but I think that we should wait
> first a couple of days to see if Alvaro can comment on this issue.

Okay, after sleeping on it for a couple of days, let's block the case
on HEAD and remove the assertion in the back branches.  Could you add
a test case in indexing.sql for the patch of HEAD?
--
Michael

Commits

  1. Fix assertion failure with ALTER TABLE ATTACH PARTITION and indexes