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

From Sven Köhler
Subject Re: RE : full featured alter table?
Date
Msg-id bcmupt$313$1@main.gmane.org
Whole thread Raw
In response to RE : full featured alter table?  ("Bruno BAGUETTE" <pgsql-ml@baguette.net>)
List pgsql-general
> Sorry, but I don't fully agree with you. If I have to add a new column
> in a table, this column will appear in the end of the table. What we are
> talking about (as I understand) is to have the possibility to order the
> columns table (via ALTER TABLE ...POSITION..). SELECT * FROM <table>
> would use that order to display the columns.

yes. it is a feature that not many DBMS support (i know only of MySQL
which supports inserting a column at a defined splace - and don't blame
me - i don't like MySQL either) - it is a feature that's missing in many
DBMS too.

> We are not talking of changing columns order for each kind of SQL query.
> In that case, I agree that views are usefull and when we want to
> display several tables in one "pseudo-table" (a view) and to have less
> big queries.

I don't know about PostGreSQL, but views can be slower than normal
queries - especially when you don't do a "select * form view" but add a
some where-clauses, joins etc.


pgsql-general by date:

Previous
From: "Bruno BAGUETTE"
Date:
Subject: RE : full featured alter table?
Next
From: Oleg Bartunov
Date:
Subject: Re: tsearch - v2 new dict