Re: [PERFORM] Difference in query plan

2008-11-14 Thread Patrice Beliveau
t happen in the other schema Thanks again Patrice Beliveau wrote: > I have a database in a production server (8.1.9) with to schema > containing the sames table same index, same every thing, but with > different data. When I execute a query in one schema, it take much more > time to ex

[PERFORM] Difference in query plan

2008-11-14 Thread Patrice Beliveau
I have a database in a production server (8.1.9) with to schema containing the sames table same index, same every thing, but with different data. When I execute a query in one schema, it take much more time to execute then the other schema. I've issue the query plan and it's different from one

Re: [PERFORM] Optimizing queries

2006-08-09 Thread Patrice Beliveau
query. Maybe it will work. Patrice Beliveau wrote: Tom Lane wrote: Patrice Beliveau <[EMAIL PROTECTED]> writes: SELECT * FROM TABLE WHERE TABLE.COLUMN1=something AND TABLE.COLUMN2=somethingelse AND function(TABLE.COLUMN3,TABLE.COLUMN4) > 0; I

Re: [PERFORM] Optimizing queries

2006-08-09 Thread Patrice Beliveau
Tom Lane wrote: Patrice Beliveau <[EMAIL PROTECTED]> writes: SELECT * FROM TABLE WHERE TABLE.COLUMN1=something AND TABLE.COLUMN2=somethingelse AND function(TABLE.COLUMN3,TABLE.COLUMN4) > 0; I find out that the function process every row even if the row should be re

Re: [PERFORM] Optimizing queries

2006-08-08 Thread Patrice Beliveau
Scott Marlowe wrote: On Tue, 2006-08-08 at 12:49, Patrice Beliveau wrote: Hi, I have a query that use a function and some column test to select row. It's in the form of: SELECT * FROM TABLE WHERE TABLE.COLUMN1=something AND TABLE.COLUMN2=somethingelse AND fun

[PERFORM] Optimizing queries

2006-08-08 Thread Patrice Beliveau
Hi, I have a query that use a function and some column test to select row. It's in the form of: SELECT * FROM TABLE WHERE TABLE.COLUMN1=something AND TABLE.COLUMN2=somethingelse AND function(TABLE.COLUMN3,TABLE.COLUMN4) > 0; The result of the function does NOT depend only from the