Re: [HACKERS] psql nested queries with 2000+ records

Vadim B. Mikheev <vadim@sable.krasnoyarsk.su>

From: "Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>
To: Coronach <coronach@hill-b-073.resnet.purdue.edu>
Cc: pgsql-hackers@postgreSQL.org
Date: 1998-03-21T14:16:07Z
Lists: pgsql-hackers
Coronach wrote:
> 
> I have noted with 2000+ records in a table (using a btree unique index on
> the primary key, btw) performance of a query takes 15+ minutes to respond.
> 
> The query is in the structure of this
> 
> select foo from bar where foo in (select foo from bar where bazzfoo like
> 'Word%');

EXPLAIN select foo from bar where bazzfoo like 'Word%';

Is index used ?

Vadim