From: Bruno Wolff III <bruno@wolff.to>
To: SZUCS Gábor <surrano@mailbox.hu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Select query takes long to execute
Date: Fri, 30 May 2003 07:13:11 -0500
Message-ID: <20030530121311.GB8920@wolff.to> (raw)
In-Reply-To: <001c01c32689$82da1050$0403a8c0@fejleszt4>
References: <20030529194451.24416.h006.c001.wm@mail.dilger.cc.criticalpath.net>
<001c01c32689$82da1050$0403a8c0@fejleszt4>
On Fri, May 30, 2003 at 10:57:33 +0200,
SZUCS Gábor <surrano@mailbox.hu> wrote:
> Nikolaus,
>
> I think that shouldn't be any more effective. As I experienced, it's
> irrelevant how many cols an index has as long as you only use the first
> column. And, after that, if you use another column, how could a missing
> second column be any better?
Because the index will be more compact and reside on less disk blocks.
The planner also makes different guesses for the selectivity whne using
the first column of a multicolumn index as opposed to a single column
index.
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: bruno@wolff.to, surrano@mailbox.hu
Subject: Re: Select query takes long to execute
In-Reply-To: <20030530121311.GB8920@wolff.to>
References: <20030529194451.24416.h006.c001.wm@mail.dilger.cc.criticalpath.net> <001c01c32689$82da1050$0403a8c0@fejleszt4> <20030530121311.GB8920@wolff.to>
* 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