pgsql: Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY

From: Greg Stark <stark(at)mit(dot)edu>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY
Date: 2018-12-20 02:01:03
Message-ID: E1gZne3-0000wy-So@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Greg Stark 2018-12-20 02:01:15 pgsql: Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY
Previous Message Michael Paquier 2018-12-20 01:21:45 Re: pgsql: Remove function names from error messages