]> granicus.if.org Git - postgresql/commit
Fix unvalidated check constraints on domains, too
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 25 Nov 2011 20:56:55 +0000 (17:56 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 25 Nov 2011 21:19:18 +0000 (18:19 -0300)
commitf717f4bca298b0a1170ff506e02142e4859c3dae
tree8b7f6094f8c4be51af2ab337f21688222e95e6be
parent3c0afde11a12bb3ca7c68a30ad0dedaa0d1adef5
Fix unvalidated check constraints on domains, too

Same bug as reported by Thom Brown for check constraints on tables: the
constraint must be dumped separately from the domain, otherwise it is
restored before the data and thus prevents potentially-violating data
from being loaded in the first place.

Per Dean Rasheed
src/bin/pg_dump/pg_dump.c