Re: Fixing inheritance merge behavior in ALTER TABLE ADD CONSTRAINT - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: Fixing inheritance merge behavior in ALTER TABLE ADD CONSTRAINT
Date
Msg-id CADkLM=e5+EsQh3OB561hLcNdiRT7WxdFt-W7308tGjUzK0-sow@mail.gmail.com
Whole thread
In response to Fixing inheritance merge behavior in ALTER TABLE ADD CONSTRAINT  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

On Fri, Oct 7, 2016 at 5:09 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
What seems like a saner answer to me is to change the backend so that it
will accept these ALTER commands in either order, with the same end state.
The reason it throws an error now, IMO, is just so that blindly issuing
the same ALTER ADD CONSTRAINT twice will fail.  But we could deal with
that by saying that it's okay as long as the initially-targeted constraint
doesn't already have conislocal = true.


+1. Been bitten by this one myself.

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Radix tree for character conversion
Next
From: Robert Haas
Date:
Subject: Re: [COMMITTERS] pgsql: Remove -Wl,-undefined,dynamic_lookup in macOS build.