Improving performance of a query - Mailing list pgsql-performance

From Carlos Benkendorf
Subject Improving performance of a query
Date
Msg-id 20050903210227.75394.qmail@web35508.mail.mud.yahoo.com
Whole thread Raw
Responses Re: Improving performance of a query
List pgsql-performance
Hi,
 
Is there a way to improve the performance of the following query?
 
SELECT * FROM SSIRRA where
(YEAR = 2004 and CUSTOMER = 0000000004 and CODE = 00 and PART >= 00) or
(YEAR = 2004 and CUSTOMER = 0000000004 and CODE > 00) or
(YEAR = 2004 and CUSTOMER > 0000000004) or
(YEAR > 2004)
 
Thanks in advance!
 
Benkendorf

__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/

pgsql-performance by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: Massive performance issues
Next
From: Michael Fuhr
Date:
Subject: Re: Improving performance of a query