Re: Add column and specify the column position in a table - Mailing list pgsql-sql

From Andrew Sullivan
Subject Re: Add column and specify the column position in a table
Date
Msg-id 20060518155829.GE29472@phlogiston.dyndns.org
Whole thread Raw
In response to Re: Add column and specify the column position in a table  ("Guillaume Lelarge" <guillaume.lelarge@gmail.com>)
Responses Re: Add column and specify the column position in a table
List pgsql-sql
On Thu, May 18, 2006 at 05:43:19PM +0200, Guillaume Lelarge wrote:
> Do you mean that, using "alter table test add column" with the "after"
> option, MySQL creates a new table, populates it with the old table
> data and finally drops the old table ? I mean, there's the same
> performance problem with big tables ?

MySQL does that for a great deal of its DDL.  Yes, the performance is
awful for this on big tables.

The reason I didn't answer the OP's question, though, is that I can't
think of a legitimate reason to do this anyway.  The physical layout
of the columns should not be of concern to the developer, who should
be naming the columns anyway.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
The whole tendency of modern prose is away from concreteness.    --George Orwell


pgsql-sql by date:

Previous
From: "Guillaume Lelarge"
Date:
Subject: Re: Add column and specify the column position in a table
Next
From: Markus Schaber
Date:
Subject: Re: Constraint question