From: Fazal Majid <majid@apsalar.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9555: pg_dump for tables with inheritance recreates the table with the wrong order of columns
Date: Fri, 14 Mar 2014 07:54:43 -0700
Message-ID: <B7263FFC-3726-4DCD-9293-B4D700893D63@apsalar.com> (raw)
In-Reply-To: <15349.1394720340@sss.pgh.pa.us>
References: <20140313043900.398.17129@wrigleys.postgresql.org>
<20140313134739.GD4744@eldon.alvh.no-ip.org>
<15349.1394720340@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Mar 13, 2014, at 7:19, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
>> majid@apsalar.com wrote:
>>> Reproduction case:
>>>
>>> create table A(a int, b int, c int);
>>> create table B(a int, c int);
>>> alter table A inherit B;
>
>> I wonder if the real fix here is to have ALTER / INHERIT error out of
>> the columns in B are not a prefix of those in A.
>
> Years ago, we sweated quite a lot of blood to make these cases work.
> I'm not thrilled about throwing away all that effort because one person
> doesn't like the behavior.
That makes sense, but then it would make sense to document this behavior under ALTER TABLE ... INHERIT, and possibly change its behavior so it reorders the columns on the source database’s data dictionary (I am not sure whether the logical column order has to match the physical order already embedded in the data files).
Thanks,
--
Fazal Majid
CTO, Apsalar Inc.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: majid@apsalar.com, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com
Subject: Re: BUG #9555: pg_dump for tables with inheritance recreates the table with the wrong order of columns
In-Reply-To: <B7263FFC-3726-4DCD-9293-B4D700893D63@apsalar.com>
References: <20140313043900.398.17129@wrigleys.postgresql.org> <20140313134739.GD4744@eldon.alvh.no-ip.org> <15349.1394720340@sss.pgh.pa.us> <B7263FFC-3726-4DCD-9293-B4D700893D63@apsalar.com>
* 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