kazuho/p5-test-postgresql — pull request #1 by salva (2012-05-09 08:47:55+00:00)
Title: Make module work on SuSE

This pull request solves to issues that were showing under SuSE SLES 10 SP2, though they may probably also happen under other OSs.

Under SuSE the default configuration created by initdb sets silent_mode=on, which causes postmaster to close its stdio streams and to fork itself on the background. The module is not expecting its child process to exit and so it fails. My solution has been to delete (actually truncate it to size 0) the configuration file so that instead of the customized configuration from the package creator, the one hard coded inside postmaster is used

Another problem was that the file where the output from postmaster was redirected was not open in append mode and so, as postgres runs several processes, sometimes they overwrote their output also causing the module to fail.

Finally, I would gladly take over maintainership of the module if you are not interested in doing it anymore. I am the author of Pg::PQ and AnyEvent::Pg and would like to see this module properly maintained so that I can depend on it for testing my modules.

Cheers,

- Salvador Fandiño.