Fix pg_dump to ensure that a comment on a table CHECK constraint cannot
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 14 Dec 2004 21:35:20 +0000 (21:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 14 Dec 2004 21:35:20 +0000 (21:35 +0000)
commit8c0a59b29072105dfd73fca1c0cbf06013448e3d
tree06b3f56d5c7829da7c0072033a3f4a5b9f3348e2
parent3455ce306565ae0c4fb95af4e28482cb30c9269d
Fix pg_dump to ensure that a comment on a table CHECK constraint cannot
be emitted too soon.  The previous code got this right in the case where
the CHECK was emitted as a separate ALTER TABLE command, but not in the
case where the CHECK is emitted right in CREATE TABLE.  Per report from
Slawomir Sudnik.

Note: this code is pretty ugly; it'd perhaps be better to treat comments
as independently sortable dump objects.  That'd be much too invasive a
change for RC time though.
src/bin/pg_dump/pg_dump.c