Re: [HACKERS] psql nested queries with 2000+ records - Mailing list pgsql-hackers

From Vadim B. Mikheev
Subject Re: [HACKERS] psql nested queries with 2000+ records
Date
Msg-id 3513CBA7.5671F8CF@sable.krasnoyarsk.su
Whole thread Raw
In response to psql nested queries with 2000+ records  (Coronach <coronach@hill-b-073.resnet.purdue.edu>)
List 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

pgsql-hackers by date:

Previous
From: t-ishii@sra.co.jp (Tatsuo Ishii)
Date:
Subject: Re: [HACKERS] 6.3p1 CHANGES
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] 6.3p1 CHANGES