pgsql: Add support for ALTER TABLE IF EXISTS ... RENAME CONSTRAINT

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add support for ALTER TABLE IF EXISTS ... RENAME CONSTRAINT
Date: 2015-03-24 23:52:53
Message-ID: E1YaYcv-000073-3h@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add support for ALTER TABLE IF EXISTS ... RENAME CONSTRAINT

Also add regression test. Previously this was documented to work, but
didn't.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1d8198bb44e7e7e3e96d96942f642e9964111628

Modified Files
--------------
src/backend/commands/tablecmds.c | 9 ++++++++-
src/backend/parser/gram.y | 11 +++++++++++
src/test/regress/expected/alter_table.out | 2 ++
src/test/regress/sql/alter_table.sql | 1 +
4 files changed, 22 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2015-03-24 23:57:59 pgsql: doc: update NUMERIC to state that only some ops are exact
Previous Message Tom Lane 2015-03-24 19:53:16 pgsql: Fix ExecOpenScanRelation to take a lock on a ROW_MARK_COPY relat