From: Rikard Pavelic <rikard.pavelic@zg.htnet.hr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6618: incorrect restore for composite columns when order changes
Date: Fri, 27 Apr 2012 08:57:26 +0200
Message-ID: <4F9A4356.4070409@zg.htnet.hr> (raw)
In-Reply-To: <16145.1335479941@sss.pgh.pa.us>
References: <E1SNX3T-0003Mk-Gy@wrigleys.postgresql.org>
<16145.1335479941@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: rikard.pavelic@zg.htnet.hr, tgl@sss.pgh.pa.us
Subject: Re: BUG #6618: incorrect restore for composite columns when order changes
In-Reply-To: <4F9A4356.4070409@zg.htnet.hr>
References: <E1SNX3T-0003Mk-Gy@wrigleys.postgresql.org> <16145.1335479941@sss.pgh.pa.us> <4F9A4356.4070409@zg.htnet.hr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox