News for hackers. Stuff that matters.
Re:Costs of a PostgreSQL connection by nirvdrum on Wednesday February 19, 2014 @04:23PM (#7266334)
I appreciate the comment, but since this was in regards to Rails, the two options were basically use prepared statements or don't. You don't get any safety without them and have to rely on Rails, which does an admirable job, but has faltered from time to time.
Re:Costs of a PostgreSQL connection by saurik on Wednesday February 19, 2014 @06:54PM (#7267576)
If Rails stops using the two-step parse/execute PostgreSQL commands (which are supported without issue by PGbouncer, and which is how you are supposed to get bound parameters) when prepared_statements is turned off (a setting which intuitively should only turn off using standard SQL named prepared statements), then that's pathetic behavior (even for Rails) and should really be fixed.