Re: full featured alter table? - Mailing list pgsql-general

From Tom Lane
Subject Re: full featured alter table?
Date
Msg-id 2220.1055713921@sss.pgh.pa.us
Whole thread Raw
In response to Re: full featured alter table?  (Tino Wildenhain <tino@wildenhain.de>)
List pgsql-general
Tino Wildenhain <tino@wildenhain.de> writes:
> why not just order the output columns in alphabetical order?

Because it would violate the SQL spec.  While the spec does not propose
any ALTER TABLE command that would let one rearrange the column order,
it is perfectly clear about the semantics of "SELECT *" and "INSERT"
when one has only done CREATE TABLE and ALTER TABLE ADD COLUMN.  We do
not get to invent our own behavior there.

            regards, tom lane

pgsql-general by date:

Previous
From: "Bruno BAGUETTE"
Date:
Subject: RE : full featured alter table?
Next
From: nolan@celery.tssi.com
Date:
Subject: Optimizer failure on update w/integer column