From: Josh Berkus <josh@agliodbs.com>
To: Itai Zukerman <zukerman@math-hat.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: count(*), EXISTS, indexes
Date: Fri, 11 Apr 2003 14:42:48 -0700
Message-ID: <200304111442.48107.josh@agliodbs.com> (raw)
In-Reply-To: <871y08sq0e.fsf@matt.w80.math-hat.com>
References: <874r54sr8q.fsf@matt.w80.math-hat.com>
<200304111353.50162.josh@agliodbs.com>
<871y08sq0e.fsf@matt.w80.math-hat.com>
Itai,
> # explain select sum(weight) from rprofile rp where exists (select 1 from
rcount_prof rcp where rcp.profile ~<= rp.profile and ~rcp.psig ~<= rp.psig
and rcp.filter='{734,1944}');
I'm not familiar with the "~" that you have in the query. What are those for?
Do you have an index on rcp.profile, rcp.psig, rcp.filter?
--
-Josh Berkus
Aglio Database Solutions
San Francisco
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, zukerman@math-hat.com
Subject: Re: count(*), EXISTS, indexes
In-Reply-To: <200304111442.48107.josh@agliodbs.com>
* 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