pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Kalchev <daniel@digsys.bg>
To: Hannu Krosing <hannu@tm.ee>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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 12:44:04 +0200
Message-ID: <200301231044.h0NAi8Y21333@dcave.digsys.bg> (raw)
In-Reply-To: <1043317847.2347.35.camel@localhost.localdomain>

>>>Hannu Krosing said:
 > Tom Lane kirjutas N, 23.01.2003 kell 02:04:
 > > We already do cache column offsets when they are fixed.  The code that's
 > > the problem executes when there's a variable-width column in the table
 > > --- which means that all columns to its right are not at fixed offsets,
 > > and have to be scanned for separately in each tuple, AFAICS.
 > 
 > Not only varlen columns, but also NULL columns forbid knowing the
 > offsets beforehand.

Does this mean, that constructing tables where fixed length fields are 
'before' variable lenght fields and 'possibly null' fields might increase 
performance?

Daniel




view thread (22+ messages)  latest in thread

Message-ID: <200301231044.h0NAi8Y21333@dcave.digsys.bg>
Permalink:  ../200301231044.h0NAi8Y21333@dcave.digsys.bg/
Also on:    postgresql.org/message-id/200301231044.h0NAi8Y21333@dcave.digsys.bg

 · 

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: daniel@digsys.bg, hannu@tm.ee, tgl@sss.pgh.pa.us, DCorbit@connx.com, scrawford@pinpointresearch.com, pgsql-hackers@postgresql.org
  Subject: Re: Terrible performance on wide selects
  In-Reply-To: <200301231044.h0NAi8Y21333@dcave.digsys.bg>
  References: <1043317847.2347.35.camel@localhost.localdomain> <200301231044.h0NAi8Y21333@dcave.digsys.bg>

* 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