Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: BUG #3500: Horrible performance when wrong type is set in prepared statement


  • From: Joseph S <jks(at)selectacast(dot)net>
  • To: Flavio Botelho <fbotelho(at)stj(dot)gov(dot)br>
  • To: pgsql-bugs(at)postgresql(dot)org
  • Subject: Re: BUG #3500: Horrible performance when wrong type is set in prepared statement
  • Date: Tue, 31 Jul 2007 18:31:07 -0400
  • Message-id: <46AFB82B.2090401@selectacast.net> <text/plain>

Flavio Botelho wrote:

I know the application should not be doing this. But i wonder if lots of the
complaints about postgres performance couldnt be related to problems like
this. I suggest that you change the behaviour of something like that from
silently accepting the string value to throwing an error.

Well that would be bad. I still have a lot of code with numbers inside quotes to work around the old postgres bug where index scans weren't used unless the numbers were in quotes (because the table columns were int2's and passed in numbers were assumed to be ints)

Do you have EXPLAIN output showing the difference in your queries if the values are in strings or not?



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group