Re: About index - "a query or data manipulation command - Mailing list pgsql-general

From Ragnar Hafstað
Subject Re: About index - "a query or data manipulation command
Date
Msg-id 1114542505.18333.5.camel@localhost.localdomain
Whole thread Raw
In response to About index - "a query or data manipulation command can use at most one index per table"  (Ying Lu <ying_lu@cs.concordia.ca>)
List 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




pgsql-general by date:

Previous
From: Richard_D_Levine@raytheon.com
Date:
Subject: Re: UltraSPARC versus AMD
Next
From: Michael Fuhr
Date:
Subject: Re: About index - "a query or data manipulation command can use at most one index per table"