From: Tom Lane <tgl@sss.pgh.pa.us>
To: SLetovsky@aol.com
Cc: cain@cshl.org
Cc: pgsql-performance@postgresql.org
Cc: gmod-schema@lists.sourceforge.net
Subject: Re: [Gmod-schema] Re: performace problem after VACUUM ANALYZE
Date: Fri, 14 Feb 2003 19:11:52 -0500
Message-ID: <12378.1045267912@sss.pgh.pa.us> (raw)
In-Reply-To: <27.394f051e.2b7eded5@aol.com>
References: <27.394f051e.2b7eded5@aol.com>
SLetovsky@aol.com writes:
> Am I correct in interpreting your comments as saying you believe that
> if we could lose the OR and the strand constraint PG would probably
> use the index properly?
No, I said I thought it could do it without that ;-). But yes, you'd
have a much less fragile query if you could lose the OR condition.
Have you looked into using a UNION ALL instead of OR to merge the two
sets of results? It sounds grotty, but might be faster...
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, SLetovsky@aol.com, cain@cshl.org, gmod-schema@lists.sourceforge.net
Subject: Re: [Gmod-schema] Re: performace problem after VACUUM ANALYZE
In-Reply-To: <12378.1045267912@sss.pgh.pa.us>
References: <27.394f051e.2b7eded5@aol.com> <12378.1045267912@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