pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Kalchev <daniel@digsys.bg>
Cc: Hannu Krosing <hannu@tm.ee>
Cc: Dann Corbit <DCorbit@connx.com>
Cc: Steve Crawford <scrawford@pinpointresearch.com>
Cc: pgsql-performance@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: Terrible performance on wide selects
Date: Thu, 23 Jan 2003 09:50:02 -0500
Message-ID: <25738.1043333402@sss.pgh.pa.us> (raw)
In-Reply-To: <200301231044.h0NAi8Y21333@dcave.digsys.bg>
References: <200301231044.h0NAi8Y21333@dcave.digsys.bg>

Daniel Kalchev <daniel@digsys.bg> writes:
> Does this mean, that constructing tables where fixed length fields are 
> 'before' variable lenght fields and 'possibly null' fields might increase 
> performance?

There'd have to be no nulls, period, to get any useful performance
difference --- but yes, in theory putting fixed-length columns before
variable-length ones is a win.

I wouldn't bother going out to rearrange your schemas though ... at
least not before you do some tests to prove that it's worthwhile.

			regards, tom lane



view thread (22+ messages)  latest in thread

Message-ID: <25738.1043333402@sss.pgh.pa.us>
Permalink:  ../25738.1043333402@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25738.1043333402@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel@digsys.bg, hannu@tm.ee, DCorbit@connx.com, scrawford@pinpointresearch.com, pgsql-hackers@postgresql.org
  Subject: Re: Terrible performance on wide selects
  In-Reply-To: <25738.1043333402@sss.pgh.pa.us>
  References: <200301231044.h0NAi8Y21333@dcave.digsys.bg> <25738.1043333402@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox