Re: [SQL] performance inconsistency

2001-04-04 Thread Tom Lane
Phuong Ma <[EMAIL PROTECTED]> writes: > WHERE substr("ORDER_NUM", 1, 1) != 'W'; # (Orders NOT prefixed with W.) > OR... > WHERE substr("ORDER_NUM", 1, 1) = 'I'; # (Orders prefixed with I.) > However, the first query runs in about 10-15 seconds, and the second > query > ran for over 40 minutes

[SQL] performance inconsistency

2001-04-04 Thread Phuong Ma
Good day, We're running a week-old CVS snapshot of PostgreSQL 7.1, and I'm not sure if this performance inconsistency is specific to it, or if this is just something in PostgreSQL in general, but it seems kind of odd, and I could use some help here. ;) I have run two queries in a table full of i