Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 868B9FBD25A for ; Thu, 26 Apr 2012 19:21:11 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SNX3i-0001cm-Sx for pgsql-bugs@postgresql.org; Thu, 26 Apr 2012 22:21:10 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SNX3U-0003dv-5O for pgsql-bugs@postgresql.org; Thu, 26 Apr 2012 22:20:53 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SNX3T-0003Mk-Gy for pgsql-bugs@postgresql.org; Thu, 26 Apr 2012 22:20:51 +0000 Date: Thu, 26 Apr 2012 22:20:51 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6618: incorrect restore for composite columns when order changes To: pgsql-bugs@postgresql.org From: rikard.pavelic@zg.htnet.hr X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/160 X-Sequence-Number: 32911 The following bug has been logged on the website: Bug reference: 6618 Logged by: Rikard Pavelic Email address: rikard.pavelic@zg.htnet.hr PostgreSQL version: 9.1.3 Operating system: Windows 7 Description: = We've run into another issue with composite types. I've search internets but didn't find any reference to this, so I guess it's not a documented problem. Steps to reproduce problem: 1) create composite type 2) use composite type as column in a table 3) clone database 4) change order of attributes in cloned database 5) dump to plain sql with column names 6) restore sql dump to cloned database Problem: Composite type will be restored in order from original instead of cloned database. While I don't see a nice solution to this problem, it's not a too big issue for us. Just trying to document some more gotchas with composite types ;(