Re: [HACKERS] PostgreSQL performance enhancement when query planner fails to

2006-08-09 Thread Jim C. Nasby
On Mon, Aug 07, 2006 at 10:47:39PM +0200, Lukas Smith wrote: > Constantin Teodorescu wrote: > > >EXPLAIN VARIANTS SELECT .. (and so on) that will display the > >different query plans analyzed by the planner and their "estimated time > >values" , not just the "best guess" . > > > >assuming th

Re: [HACKERS] PostgreSQL performance enhancement when query planner

2006-08-08 Thread Constantin Teodorescu
Csaba Nagy wrote: Constantin, What binding are you using ? We here use Java+JDBC, and we were able to get stable query plans by forcing server side prepared statements (using PGStatement#setPrepareThreshold with 1 as the threshold), where the query is prepared without knowing the parameter value

Re: [HACKERS] PostgreSQL performance enhancement when query planner fails to

2006-08-07 Thread Lukas Smith
Constantin Teodorescu wrote: EXPLAIN VARIANTS SELECT .. (and so on) that will display the different query plans analyzed by the planner and their "estimated time values" , not just the "best guess" . assuming that the EXPLAIN VARIANTS will show 3 or 4 different query plans, the database