pgsql: Make ALTER .. SET SCHEMA do nothing, instead of throwing an ERRO

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make ALTER .. SET SCHEMA do nothing, instead of throwing an ERRO
Date: 2015-11-19 15:51:33
Message-ID: E1ZzRUj-0007hk-3r@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make ALTER .. SET SCHEMA do nothing, instead of throwing an ERROR.

This was already true for CREATE EXTENSION, but historically has not
been true for other object types. Therefore, this is a backward
incompatibility. Per discussion on pgsql-hackers, everyone seems to
agree that the new behavior is better.

Marti Raudsepp, reviewed by Haribabu Kommi and myself

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bc4996e61b98d41eacf991c18508b7a2305a68c6

Modified Files
--------------
src/backend/catalog/namespace.c | 19 +++---------
src/backend/catalog/pg_constraint.c | 3 +-
src/backend/commands/alter.c | 12 +++++++-
src/backend/commands/tablecmds.c | 14 ++++++---
src/backend/commands/typecmds.c | 42 ++++++++++++++++-----------
src/include/catalog/namespace.h | 3 +-
src/test/regress/expected/alter_generic.out | 1 +
src/test/regress/expected/alter_table.out | 5 ++--
src/test/regress/sql/alter_generic.sql | 1 +
src/test/regress/sql/alter_table.sql | 4 ++-
10 files changed, 61 insertions(+), 43 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-11-19 19:16:52 pgsql: Fix thinko: errmsg -> ereport.
Previous Message Andrew Dunstan 2015-11-19 07:43:44 pgsql: fix a perl typo