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:15 +0000
Message-ID: <E1gZneF-0000xZ-7U@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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1075dfdaf33ad8b2a61c26b5748735005e6192b9

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)

Message-ID: <E1gZneF-0000xZ-7U@gemulon.postgresql.org>
Permalink:  ../E1gZneF-0000xZ-7U@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gZneF-0000xZ-7U@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: <E1gZneF-0000xZ-7U@gemulon.postgresql.org>
  References: <E1gZneF-0000xZ-7U@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