pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-0000wy-So@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
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/128ce8e1a18ed7a83dd0f8dbe7bfb00eb73f200b

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(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1gZne3-0000wy-So@gemulon.postgresql.org>
Permalink:  ../E1gZne3-0000wy-So@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gZne3-0000wy-So@gemulon.postgresql.org

 · 

reply

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-0000wy-So@gemulon.postgresql.org>
  References: <E1gZne3-0000wy-So@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