This patch makes pg_get_constraintdef support UNIQUE, PRIMARY KEY and
authorBruce Momjian <bruce@momjian.us>
Thu, 13 Feb 2003 05:10:39 +0000 (05:10 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 13 Feb 2003 05:10:39 +0000 (05:10 +0000)
commit8add2e1bcafd92a06fada1098b110638a3d4b7f6
tree75cb8c616cdc613de14b82319bb577a2b26d4fe5
parentd21de3b12119e9b35c9f30fae0f053410a80b906
This patch makes pg_get_constraintdef support UNIQUE, PRIMARY KEY and
CHECK constraints.

There are apparently no other types of constraint in pg_constraint, so
now all bases are covered.  Also, this patch assumes that consrc for a
CHECK constraint is always bracketed so that it's not necessary to add
extra brackets.

Christopher Kings-Lynne
src/backend/utils/adt/ruleutils.c