From: Greg Stark <stark@mit.edu>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY
Date: Thu, 20 Dec 2018 02:01:03 +0000
Message-ID: <E1gZne3-0000x1-Ss@gemulon.postgresql.org> (raw)
Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY
The flag for IF NOT EXISTS was only being passed down in the normal
recursing case. It's been this way since originally added in 9.6 in
commit 2cd40adb85 so backpatch back to 9.6.
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/5668afeb6d25ef842ff14239c5ba3aa20cf56937
Modified Files
--------------
src/backend/commands/tablecmds.c | 2 +-
src/test/regress/expected/alter_table.out | 6 ++++++
src/test/regress/sql/alter_table.sql | 4 ++++
3 files changed, 11 insertions(+), 1 deletion(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: stark@mit.edu
Subject: Re: pgsql: Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY
In-Reply-To: <E1gZne3-0000x1-Ss@gemulon.postgresql.org>
References: <E1gZne3-0000x1-Ss@gemulon.postgresql.org>
* 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