From: | Richard Guo <guofenglinux(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Assert failure in ATPrepAddPrimaryKey |
Date: | 2023-09-04 03:05:08 |
Message-ID: | CAMbWs4_ogrkohxhUcUmv3=FozkJe5k=jeXyNzqh51wLZh_Cd0Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Sep 1, 2023 at 7:48 PM Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
wrote:
> On 2023-Sep-01, Richard Guo wrote:
>
> > I ran into an Assert failure in ATPrepAddPrimaryKey() with the query
> > below:
> >
> > CREATE TABLE t0(c0 boolean);
> > CREATE TABLE t1() INHERITS(t0);
> >
> > # ALTER TABLE t0 ADD CONSTRAINT m EXCLUDE ((1) WITH =);
> > server closed the connection unexpectedly
>
> Ugh, right, I failed to make the new function do nothing for this case;
> this had no coverage. Fix attached, with some additional test cases
> based on yours.
Thanks for the fix!
Thanks
Richard
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2023-09-04 03:10:53 | Re: Impact of checkpointer during pg_upgrade |
Previous Message | Michael Paquier | 2023-09-04 01:01:43 | Re: Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c) |