This sounds like some kind of library mismatch problem. I'd suggest recompiling your DBI and DBD::Pg modules, and making sure that the perl on your system is the one that mod_perl was built with. | [reply] |
You posted a patch to Ima::DBI to fix problems with cached db handles under mod_perl. I'm now sorta convinced that the problem I'm having is with cached statement handles. You never experienced this? Why change the db handle caching and not that of the statement handles?
Jim
| [reply] |
| [reply] |
The only thing I can think of is if you are trying to share a database connections between multiple Apache processes. This could happen if you open a connection in a startup script and store it in a global variable and then access it from individual scripts. That generally won't work. | [reply] |
i dont have a good answer for you, just an ugly hack to help you get by until you find the answer:
you can create a mutex with flock right before the code you believe is suspect ( ... which fetches a Class::DBI object and displays it ... ) and release the filelock after you're done with the suspect area.
-hth
| [reply] |