Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 0290711948AC for ; Fri, 27 Apr 2012 03:57:16 -0300 (ADT) Received: from smtp-out-02.xnet.hr ([83.139.103.74] helo=smtp.xnet.hr) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SNf7C-0003zr-KF for pgsql-bugs@postgresql.org; Fri, 27 Apr 2012 06:57:15 +0000 Received: from ike.bnet.hr (ike.bnet.hr [83.139.80.4]) by smtp.xnet.hr (XnetMailOut) with ESMTP id 9C1588A013; Fri, 27 Apr 2012 08:56:58 +0200 (CEST) Received: from smtp.xnet.hr ([83.139.103.71]) by ike.bnet.hr (avcleaner-b.mx.xnet.hr [83.139.80.4]) (XNet AV Scanner, port 10026) with ESMTP id Bw-ckjSZtGrU; Fri, 27 Apr 2012 08:56:56 +0200 (CEST) Received: from [109.60.120.190] (unknown [109.60.120.190]) by smtp.xnet.hr (XnetMailOut) with ESMTP id A25AB481C9; Fri, 27 Apr 2012 08:56:55 +0200 (CEST) Message-ID: <4F9A4356.4070409@zg.htnet.hr> Date: Fri, 27 Apr 2012 08:57:26 +0200 From: Rikard Pavelic User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6618: incorrect restore for composite columns when order changes References: <16145.1335479941@sss.pgh.pa.us> In-Reply-To: <16145.1335479941@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/180 X-Sequence-Number: 32931 On 27.4.2012. 0:39, Tom Lane wrote: > > There is no supported method for changing the order of attributes in a > composite type, so I wonder exactly how you did step 4. If it involved > direct manipulation of the system catalogs, I would say this falls in > the category of "if you break it, you get to keep both pieces". > > regards, tom lane > Well, there is no supported method for changing order of columns too, but doesn't stop you from creating new and dropping old until you have order which you want. To be exact I didn't clone the database, I let our tool build it. It built types with different order because our schema changed in the meantime. Regards, Rikard