wondering how prepared statements work?

Richard Yen <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>
Hi All,

I'm trying to put pg_bouncer between my app and postgres, but  
occasionally, I'll run into "prepared statement 'dbdpg_x' already  
exists" errors.  I've been looking through the source code for  
DBD::Pg, but to no avail, looking for where the "PREPARE dbdpg_x AS  
<statement>" code is at.  I'm hoping to add a little bit that would  
check for the existence of a prepared statement, and to rename the  
prepared statement to dbdpg_x+<something else> if dbdpg_x already  
exists.

Any pointers on where to look?

Thanks!
--Richard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.