[GENERAL] Problems (bug?) with the Postgres 8.4.4 optimizer, 2nd try

2010-09-03 Thread Daniel Wagner
Hi everyone. I am using Postgres 8.4.4 on a large-ish amount of data and recently noticed that my application got very slow at times. I quickly discovered that a specific query was triggering a sequential scan despite suitable indices being available. The query in question looks like this: select

[GENERAL] Problems (bug?) with the Postgres 8.4.4 optimizer

2010-09-03 Thread Daniel Wagner
Hi everyone. I am using Postgres 8.4.4 on a large-ish amount of data and recently noticed that my application got very slow at times. I quickly discovered that a specific query was triggering a sequential scan despite suitable indices being available. The query in question looks like this: