Fix binary upgrade of altered typed tables
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 27 Apr 2011 19:08:22 +0000 (22:08 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 27 Apr 2011 19:11:09 +0000 (22:11 +0300)
commitb2ef8929ae1c1b65f4b9582409463a9a2f009706
treef9af6ea028d3f870a74353051552cf3591a323c3
parent6693fec0e8dec81a9b149494cbdb90e454b6119e
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.
src/bin/pg_dump/pg_dump.c