From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael McCarthy <michael@tcsi.com>
Cc: David C Hartwig Jr <daybee@bellatlantic.net>
Cc: pgsql-sql@postgreSQL.org, Hemant Yevale <hemant@tcsi.com>
Cc: Savyasachi Jog <jog@tcsi.com>
Subject: Re: [SQL] problem with OR'ed AND queriess
Date: Tue, 21 Dec 1999 23:13:52 -0500
Message-ID: <14561.945836032@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.GSO.3.96.991221151143.9161K-100000@sanmarino.tcsi.com>
References: <Pine.GSO.3.96.991221151143.9161K-100000@sanmarino.tcsi.com>
Michael McCarthy <michael@tcsi.com> writes:
> A quick examination of backend/optimizer/prep/prepkeyset.c shows me that
> there is some qualification of a query for keyset optimization; is there
> any reason why I should not always set ksqo on?
If it seems to win more often than not for your query mix, go for it.
ksqo is a hack that I'm hoping to eliminate in the next release or
three. But right now, it's a mighty useful hack if you do a lot of
OR-of-AND queries...
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@tcsi.com, daybee@bellatlantic.net, hemant@tcsi.com, jog@tcsi.com
Subject: Re: [SQL] problem with OR'ed AND queriess
In-Reply-To: <14561.945836032@sss.pgh.pa.us>
References: <Pine.GSO.3.96.991221151143.9161K-100000@sanmarino.tcsi.com> <14561.945836032@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