dbTalk Databases Forums  

[BUGS] BUG #1753: Query Optimizer does not work well with libpg / PQexecParams

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1753: Query Optimizer does not work well with libpg / PQexecParams in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ernst Bachmann
 
Posts: n/a

Default [BUGS] BUG #1753: Query Optimizer does not work well with libpg / PQexecParams - 07-05-2005 , 09:02 AM







The following bug has been logged online:

Bug reference: 1753
Logged by: Ernst Bachmann
Email address: e.bachmann (AT) xebec (DOT) de
PostgreSQL version: 8.0.3
Operating system: Linux
Description: Query Optimizer does not work well with libpg /
PQexecParams
Details:

It looks like the query optimizer isn't taking the value of parameters sent
with PQexecParams into account, thus generating (in my case, very) unoptimal
plans

There is a warning about that for "PREPARE", but with PQexecParams, the
parameter values should be available immediatly for the planner.

Sending the parameters inline in the SQL query string solved the problem for
me (Query executes in 5 ms instead of 500+), but thats obviously not my
favorite solution.

Is this something planned to be fixed, otherwise a warning in the libpq
documentation about "PQexecParams" being potentially slow would be nice.

Thanks
/Ernst

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.