Re: performance versus order of fields in row

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: stimits(at)comcast(dot)net, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: performance versus order of fields in row
Date: 2003-11-26 05:39:27
Message-ID: 11321.1069825167@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jan Wieck <JanWieck(at)Yahoo(dot)com> writes:
> Tom Lane wrote:
>> Fields earlier in the table definition (further to the left) are
>> marginally faster to access than ones further to the right. I doubt it
>> would be real noticeable unless you had hundreds of fields altogether.

> Do we still "cache" field offsets for not-nullable-fixed-size columns?

Yeah, we do, but I didn't think he wanted to get into that level of
detail ... in any case it's a safe bet that earlier fields are no slower
than later ones.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2003-11-26 06:13:41 Re: PostgreSQL is much faster than MySQL, only when...
Previous Message Randolf Richardson 2003-11-26 04:29:51 Re: Large objects [BLOB] again - general howto