pgsql: Fix binary upgrade of altered typed tables

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix binary upgrade of altered typed tables
Date: 2011-04-27 19:11:31
Message-ID: E1QFA95-0007lc-PM@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix binary upgrade of altered typed tables

Instead of dumping them as CREATE TABLE ... OF, dump them as normal
tables with the usual special processing for dropped columns, and then
attach them to the type afterward, using ALTER TABLE ... OF. This is
analogous to the existing handling of inherited tables.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b2ef8929ae1c1b65f4b9582409463a9a2f009706

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-27 20:10:37 Re: pgsql: Fix pg_size_pretty() to avoid overflow for inputs close to INT64
Previous Message Alvaro Herrera 2011-04-27 19:08:29 Re: pgsql: Fix pg_size_pretty() to avoid overflow for inputs close to INT64