Richard Huxton provided the answer: It's a prepared query-plan,
which means it can't plan to use the index because the next EXECUTE
might have reconciled=true.
Bryce Nesbitt wrote: ...Which is all good. But the Hibernate version of query still takes several seconds, and still appears in my pg_log slow query log: |
- [SQL] Difference between "foo is false" and &qu... Bryce Nesbitt
- Re: [SQL] Difference between "foo is false"... Tom Lane
- Re: [SQL] Difference between "foo is false&... Bryce Nesbitt
- Re: [SQL] Difference between "foo is fa... Richard Huxton
- [SQL] Partial index on boolean - Sometimes fails to ... Bryce Nesbitt
- Re: [SQL] Partial index on boolean - Sometimes f... Bryce Nesbitt
- [SQL] Trigger to change different row in sam... PostgreSQL Admin