]> granicus.if.org Git - postgresql/commit
Allow CHECK constraints to be declared ONLY
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 5 Dec 2011 18:10:18 +0000 (15:10 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 19 Dec 2011 20:30:23 +0000 (17:30 -0300)
commit61d81bd28dbec65a6b144e0cd3d0bfe25913c3ac
treebc99d53c06bed6dcc146f7eb97babba998eb5e1d
parent92203624934095163f8b57b5b3d7bbd2645da2c8
Allow CHECK constraints to be declared ONLY

This makes them enforceable only on the parent table, not on children
tables.  This is useful in various situations, per discussion involving
people bitten by the restrictive behavior introduced in 8.4.

Message-Id:
8762mp93iw.fsf@comcast.net
CAFaPBrSMMpubkGf4zcRL_YL-AERUbYF_-ZNNYfb3CVwwEqc9TQ@mail.gmail.com

Authors: Nikhil Sontakke, Alex Hunsaker
Reviewed by Robert Haas and myself
19 files changed:
doc/src/sgml/catalogs.sgml
doc/src/sgml/ref/alter_table.sgml
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/catalog/pg_constraint.c
src/backend/commands/tablecmds.c
src/backend/commands/trigger.c
src/backend/commands/typecmds.c
src/backend/utils/cache/relcache.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/psql/describe.c
src/include/access/tupdesc.h
src/include/catalog/heap.h
src/include/catalog/pg_constraint.h
src/test/regress/expected/alter_table.out
src/test/regress/expected/inherit.out
src/test/regress/sql/alter_table.sql
src/test/regress/sql/inherit.sql