pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: rikard.pavelic@zg.htnet.hr
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6618: incorrect restore for composite columns when order changes
Date: Thu, 26 Apr 2012 18:39:01 -0400
Message-ID: <16145.1335479941@sss.pgh.pa.us> (raw)
In-Reply-To: <E1SNX3T-0003Mk-Gy@wrigleys.postgresql.org>
References: <E1SNX3T-0003Mk-Gy@wrigleys.postgresql.org>

rikard.pavelic@zg.htnet.hr writes:
> 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

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



view thread (3+ messages)  latest in thread

Message-ID: <16145.1335479941@sss.pgh.pa.us>
Permalink:  ../16145.1335479941@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16145.1335479941@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, rikard.pavelic@zg.htnet.hr
  Subject: Re: BUG #6618: incorrect restore for composite columns when order changes
  In-Reply-To: <16145.1335479941@sss.pgh.pa.us>
  References: <E1SNX3T-0003Mk-Gy@wrigleys.postgresql.org> <16145.1335479941@sss.pgh.pa.us>

* 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