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 11:58:35 +0000 (14:58 +0300)
commit7e8c25c66e9837d5dafeb2b3a0786611226af269
tree3fa86870a48fb600fa5c80283a5aac5c8596e7d2
parent9aae81527f3174b9b6fd6366f04435310903dab2
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