Initialize tableoid field correctly when dumping foreign data wrappers and
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 23 Sep 2010 11:49:00 +0000 (14:49 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 23 Sep 2010 12:00:08 +0000 (15:00 +0300)
commitbe622060ddecdbdebb8fb8e438e70a5bb51d186c
tree6fb005975e2c3146a1d74cf62baa4cce6f64e126
parentfcb2326180ebad04106f745f646c4e02bc9ff10f
Initialize tableoid field correctly when dumping foreign data wrappers and
servers. AFAICT it's harmless at the moment because nothing can depend on
either, but as soon as we introduce an object type with such dependencies,
tableoid needs to be set or pg_dump will fail to interpret the dependencies
correctly. In theory, I guess the uninitialized garbage in tableoid could
cause the object to be mistaken for some other object with same OID as well.
src/bin/pg_dump/pg_dump.c