On 08/01/2012 05:19 PM, dinesh kumar
wrote:
You can't share a connection between threads unless it's protected by a lock that prevents more than one thread from using it at once. Use multiple connections, each isolated to a single thread. See: http://www.postgresql.org/docs/9.1/static/libpq-threading.html -- Craig Ringer |