pgsql: Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY - Mailing list pgsql-committers

From Greg Stark
Subject pgsql: Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY
Date
Msg-id E1gZne3-0000x1-Ss@gemulon.postgresql.org
Whole thread Raw
List 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
------
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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pgsql: Remove function names from error messages
Next
From: Greg Stark
Date:
Subject: pgsql: Fix ADD IF NOT EXISTS used in conjunction with ALTER TABLE ONLY