Skip site navigation (1) Skip section navigation (2)

pgsql: ALTER <thing> [IF EXISTS] ... allows silent DDL if required,

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: ALTER <thing> [IF EXISTS] ... allows silent DDL if required,
Date: 2012-01-23 23:25:38
Message-ID: E1RpTGc-0006Z2-Tw@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
ALTER <thing> [IF EXISTS] ... allows silent DDL if required,
e.g. ALTER FOREIGN TABLE IF EXISTS foo RENAME TO bar

Pavel Stehule

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/alter_foreign_table.sgml  |   18 ++-
doc/src/sgml/ref/alter_index.sgml          |   18 ++-
doc/src/sgml/ref/alter_sequence.sgml       |   18 ++-
doc/src/sgml/ref/alter_table.sgml          |   18 ++-
doc/src/sgml/ref/alter_view.sgml           |   24 +++-
src/backend/commands/sequence.c            |   10 ++-
src/backend/commands/tablecmds.c           |   34 ++++-
src/backend/nodes/copyfuncs.c              |    4 +
src/backend/nodes/equalfuncs.c             |    4 +
src/backend/parser/gram.y                  |  216 ++++++++++++++++++++++++++++
src/backend/parser/parse_utilcmd.c         |   10 ++-
src/backend/tcop/utility.c                 |   53 ++++---
src/include/nodes/parsenodes.h             |    4 +
src/test/regress/expected/alter_table.out  |   46 ++++++
src/test/regress/expected/foreign_data.out |   44 ++++++
src/test/regress/expected/sequence.out     |    3 +
src/test/regress/sql/alter_table.sql       |   32 ++++
src/test/regress/sql/foreign_data.sql      |   26 ++++
src/test/regress/sql/sequence.sql          |    4 +
19 files changed, 534 insertions(+), 52 deletions(-)

pgsql-committers by date

Next:From: Simon RiggsDate: 2012-01-23 23:39:12
Subject: pgsql: Resolve timing issue with logging locks for Hot Standby.
Previous:From: Magnus HaganderDate: 2012-01-22 21:34:54
Subject: pgsql: Typo fix

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group