From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Alessio Bragadini <alessio(at)albourne(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Changing Column Order (Was Re: MySQL vs PostgreSQL.) |
Date: | 2002-10-14 15:15:59 |
Message-ID: | 20021014151559.GA2301@dcc.uchile.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-jdbc |
On Mon, Oct 14, 2002 at 11:04:07AM -0400, Bruce Momjian wrote:
> Alessio Bragadini wrote:
> > On Sat, 2002-10-12 at 11:37, Gavin Sherry wrote:
> >
> > > I cannot think of any reason why changing column order should be
> > > implemented in Postgres. Seems like a waste of time/more code bloat for
> > > something which is strictly asthetic.
> >
> > Has column ordering any effect on the physical tuple disposition? I've
> > heard discussions about keeping fixed-size fields at the beginning of
> > the tuple and similar.
>
> Yes, column ordering matches physical column ordering in the file, and
> yes, there is a small penalty for accessing any columns after the first
> variable-length column (pg_type.typlen < 0).
And note that if column ordering was to be implemented through the use
of attlognum or something similar, the physical ordering would not be
affected. The only way to physically reoder the columns would be to
completely rebuild the table.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Aprende a avergonzarte mas ante ti que ante los demas" (Democrito)
From | Date | Subject | |
---|---|---|---|
Next Message | Darren Ferguson | 2002-10-14 15:23:07 | Re: drop constraint unnamed? |
Previous Message | Bruce Momjian | 2002-10-14 15:04:07 | Re: Changing Column Order (Was Re: MySQL vs PostgreSQL.) |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-10-14 15:19:45 | Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c |
Previous Message | Bruce Momjian | 2002-10-14 15:04:07 | Re: Changing Column Order (Was Re: MySQL vs PostgreSQL.) |
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2002-10-14 17:44:39 | Re: JDBC exception when call updateNull within an updateable ResultSet |
Previous Message | Bruce Momjian | 2002-10-14 15:04:07 | Re: Changing Column Order (Was Re: MySQL vs PostgreSQL.) |