Re: About index - "a query or data manipulation command

From: Ragnar Hafstað <gnari(at)simnet(dot)is>
To: Ying Lu <ying_lu(at)cs(dot)concordia(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: About index - "a query or data manipulation command
Date: 2005-04-26 19:08:25
Message-ID: 1114542505.18333.5.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2005-04-26 at 13:58 -0400, Ying Lu wrote:

> select * from A left join B using (id) where A.type='apple' and
> A.isExport=true;
>
> "id" is the primary key for both table A & B. If index (type, isExport)
> has been created for table A. In the above query, will this index works?

simplest is just to do an explain.

explain select * from A left join B using (id) where A.type='apple' and
A.isExport=true;

gnari

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard_D_Levine 2005-04-26 19:12:19 Re: UltraSPARC versus AMD
Previous Message Michael Fuhr 2005-04-26 19:04:47 Re: About index - "a query or data manipulation command can use at most one index per table"