From: Hannu Krosing <hannu@tm.ee>
To: 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: 23 Jan 2003 12:30:48 +0200
Message-ID: <1043317847.2347.35.camel@localhost.localdomain> (raw)
In-Reply-To: <25521.1043280242@sss.pgh.pa.us>
References: <D90A5A6C612A39408103E6ECDD77B8294CD85F@voyager.corporate.connx.com>
<25521.1043280242@sss.pgh.pa.us>
Tom Lane kirjutas N, 23.01.2003 kell 02:04:
> "Dann Corbit" <DCorbit@connx.com> writes:
> > Maybe I don't really understand the problem, but it seems simple enough
> > to do it once for the whole query.
>
> 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.
--
Hannu Krosing <hannu@tm.ee>
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: 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: <1043317847.2347.35.camel@localhost.localdomain>
References: <D90A5A6C612A39408103E6ECDD77B8294CD85F@voyager.corporate.connx.com> <25521.1043280242@sss.pgh.pa.us> <1043317847.2347.35.camel@localhost.localdomain>
* 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