Re: count(*), EXISTS, indexes

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Itai Zukerman <zukerman(at)math-hat(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: count(*), EXISTS, indexes
Date: 2003-04-11 21:42:48
Message-ID: 200304111442.48107.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Itai Zukerman 2003-04-11 22:02:37 Re: count(*), EXISTS, indexes
Previous Message Itai Zukerman 2003-04-11 21:32:00 Re: count(*), EXISTS, indexes