Re: [GENERAL] About index - "a query or data manipulation command can use at most one index per table"

2005-04-26 Thread Michael Fuhr
On Tue, Apr 26, 2005 at 01:58:09PM -0400, Ying Lu wrote: > > A question about index. It mentioned in postgresql 8.0 doc "a query or > data manipulation command can use *at most one index* *per table*". An > example query is: > > select * from A left join B using (id) where A.type='apple' and >

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

2005-04-26 Thread Ragnar =?ISO-8859-1?Q?Hafsta=F0?=
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

[GENERAL] About index - "a query or data manipulation command can use at most one index per table"

2005-04-26 Thread Ying Lu
Hello List, A question about index. It mentioned in postgresql 8.0 doc "a query or data manipulation command can use *at most one index* *per table*". An example query is: 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