Re: Field order

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
Cc: Michael Schmidt <MichaelMSchmidt(at)msn(dot)com>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Field order
Date: 2005-08-18 01:59:09
Message-ID: 20050818015909.GA10684@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 17, 2005 at 17:40:34 -0500,
"Jim C. Nasby" <jnasby(at)pervasive(dot)com> wrote:
>
> Ugh, and here I'd been doing it the other way around. I assume
> variable-length stuff should always go last, right?

I think it depends on the alignment of the type. Certain text, char and varchar
should go at the end. Nullable columns also make a difference since there is
a shortcut used for rows that contain nulls.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Murphy 2005-08-18 02:00:40 Re: speeding up a query on a large table
Previous Message Gary Fay 2005-08-18 01:36:55 Startup ...