pgsql: Initialize tableoid field correctly when dumping foreign data wr

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Initialize tableoid field correctly when dumping foreign data wr
Date: 2010-09-23 12:00:52
Message-ID: E1OykTs-0007jc-PO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=be622060ddecdbdebb8fb8e438e70a5bb51d186c

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Csaba Nagy 2010-09-23 12:26:13 Re: Configuring synchronous replication
Previous Message Heikki Linnakangas 2010-09-23 09:02:50 Re: Configuring synchronous replication