From: Tom Lane <tgl@sss.pgh.pa.us>
To: thomas@palan.at
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15710: ADD COLUMN IF NOT EXISTS adds constraint anyways
Date: Thu, 21 Mar 2019 10:18:10 -0400
Message-ID: <10528.1553177890@sss.pgh.pa.us> (raw)
In-Reply-To: <15710-f52bad04543be4cb@postgresql.org>
References: <15710-f52bad04543be4cb@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> If I want to add a column to a table which and the column may or may not
> already exist, the specified column constraint like UNIQUE is added every
> time the command is issued, regardless if the column gets added or not.
Yeah, this is the same thing previously reported at
https://www.postgresql.org/message-id/flat/152509815280.19803.16118194452213577808%40wrigleys.postgr...
We haven't got further than sketching a design for a fix :-(
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, thomas@palan.at, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15710: ADD COLUMN IF NOT EXISTS adds constraint anyways
In-Reply-To: <10528.1553177890@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox