Fix pg_get_constraintdef to cope with NOT VALID constraints
authorAlvaro Herrera <[email protected]>
Thu, 2 Jun 2011 16:39:53 +0000 (12:39 -0400)
committerAlvaro Herrera <[email protected]>
Fri, 3 Jun 2011 20:05:34 +0000 (16:05 -0400)
commit048417511aef8d5fb2d541b17b73afc730935cd5
treec73d54b9b74474fdd91e71162dcb0b3833ba847c
parentea8e42f3a0848f506d8a1b9c74967248005291cd
Fix pg_get_constraintdef to cope with NOT VALID constraints

This case was missed when NOT VALID constraints were first introduced in
commit 722bf7017bbe796decc79c1fde03e7a83dae9ada by Simon Riggs on
2011-02-08.  Among other things, it causes pg_dump to omit the NOT VALID
flag when dumping such constraints, which may cause them to fail to
load afterwards, if they contained values failing the constraint.

Per report from Thom Brown.
src/backend/utils/adt/ruleutils.c