Perfect-PostgreSQL
Perfect-PostgreSQL copied to clipboard
Made PGConnection thread-safe.
I found PGConnection is not thread-safe. This causes critical errors on multi-threaded applications (e.g. applications based on Perfect-HTTPServer). To make it thread-safe, I introduced a lock to protect libpq connection (PGConnection.conn).