]> granicus.if.org Git - postgresql/commit
Fix brain fade in previous pg_dump patch.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Feb 2012 19:09:31 +0000 (14:09 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Feb 2012 19:09:31 +0000 (14:09 -0500)
commit54660723715df39ba2c1b71ee0c44012b3d63acc
tree61bfd0454941c234556ad64ff4e88f34b5989078
parentab060c74ba0f0767237e7a3bc6022a84e177abab
Fix brain fade in previous pg_dump patch.

In pre-7.3 databases, pg_attribute.attislocal doesn't exist.  The easiest
way to make sure the new inheritance logic behaves sanely is to assume it's
TRUE, not FALSE.  This will result in printing child columns even when
they're not really needed.  We could work harder at trying to reconstruct a
value for attislocal, but there is little evidence that anyone still cares
about dumping from such old versions, so just do the minimum necessary to
have a valid dump.

I had this correct in the original draft of the patch, but for some
unaccountable reason decided it wasn't necessary to change the value.
Testing against an old server shows otherwise...
src/bin/pg_dump/pg_dump.c