Re: [PERFORM] Nested loop join and date range query

2006-05-03 Thread Ian Burrell
On 5/2/06, Tom Lane <[EMAIL PROTECTED]> wrote: "Ian Burrell" <[EMAIL PROTECTED]> writes: > We recently upgraded to PostgreSQL 8.1 from 7.4 and a few queries are > having performance problems and running for very long times. The > commonality seems to be PostgreSQL 8.1 is choosing to use a nested

Re: [PERFORM] Nested loop join and date range query

2006-05-02 Thread Tom Lane
"Ian Burrell" <[EMAIL PROTECTED]> writes: > We recently upgraded to PostgreSQL 8.1 from 7.4 and a few queries are > having performance problems and running for very long times. The > commonality seems to be PostgreSQL 8.1 is choosing to use a nested > loop join because it estimates there will be o

[PERFORM] Nested loop join and date range query

2006-05-02 Thread Ian Burrell
We recently upgraded to PostgreSQL 8.1 from 7.4 and a few queries are having performance problems and running for very long times. The commonality seems to be PostgreSQL 8.1 is choosing to use a nested loop join because it estimates there will be only be a single row. There are really thousands o