Re: change natural column order

From: Mage <mage(at)mage(dot)hu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: change natural column order
Date: 2004-11-30 16:19:47
Message-ID: 41AC9DA3.8040901@mage.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:

>Richard Huxton <dev(at)archonet(dot)com> writes:
>
>
>>I think you'll find you're out of luck. IIRC there was some discussion
>>on the hackers list regarding a mapping layer that would let you
>>re-order columns. I think the decision was "too much work for too small
>>a gain".
>>
>>
>
>Yup, that was exactly the conclusion. Too much work and too much risk
>of introducing bugs (by using the wrong one of logical and physical
>column number in any given place).
>
>You really have to drop and recreate the table if you want to reorder
>the columns.
>
>
This can be hard if you have foreign keys. I used dump, edit, and
restore the whole database in the past.

Mage

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-11-30 16:33:13 Re: Temporal query question
Previous Message Max 2004-11-30 16:12:06 Re: [ANNOUNCE] USENET vs Mailing Lists Poll ...