Re: PostgreSQL Top 10 Wishlist

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Tony Caduto <tony(dot)caduto(at)amsoftwaredesign(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL Top 10 Wishlist
Date: 2006-01-22 05:37:06
Message-ID: 20060121212324.Q59537@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 21 Jan 2006, Tony Caduto wrote:

> Tom Lane wrote:
>
> > Please go back and read the very extensive discussions of this question
> > a couple years ago in the pghackers archives (around the time we were
> > implementing DROP COLUMN, iirc). There is no "just" about it.
>
> So it's a real big deal to add another column to pg_attribute and
> populate it once with the same value as attnum when a column is added to
> a table? The attorder wouldn't really have to do anything except allow
> the developer to sort on that instead of attnum, and then we could just
> change the values in attorder to get the visual ordering we want.

If the effect you're looking for is entirely visual reordering with no
logical effects, then the server really doesn't need to be involved at
that level.

However, that's a very weak definition of column reordering because it
potentially hides the actual order used in those few places that SQL
cares. I think a client that tells me the columns are a, b, c but then
gives me an error on "insert into table values (aval, bval, cval)" because
the actual logical order is different is probably fairly broken.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2006-01-22 07:27:06 Re: PostgreSQL Top 10 Wishlist
Previous Message Tony Caduto 2006-01-22 05:07:22 Re: PostgreSQL Top 10 Wishlist