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

From: "Vadim B(dot) Mikheev" <vadim(at)sable(dot)krasnoyarsk(dot)su>
To: Coronach <coronach(at)hill-b-073(dot)resnet(dot)purdue(dot)edu>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] psql nested queries with 2000+ records
Date: 1998-03-21 14:16:07
Message-ID: 3513CBA7.5671F8CF@sable.krasnoyarsk.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-03-21 14:17:43 Re: [HACKERS] 6.3p1 CHANGES
Previous Message Tatsuo Ishii 1998-03-21 14:10:24 Re: [HACKERS] 6.3p1 CHANGES