This project is archived and is in readonly mode.

#112 ✓ invalid
Psycopg website

Psycopg2 hung queries

Reported by Psycopg website | June 23rd, 2012 @ 02:44 PM

Submitted by: anoop

We have a python program which uses psycopg2 to make a connection every 2 seconds to postgresql-9.0 and batch insert/update records. The connection is closed after use.

It's part of a server software which run continuously for months. Some times the query processes is getting stuck (for ever) in pgWaitTimed.

But pg_stat_activity on postgresql indicates that no query is running.

StackTrace
-----------
>> pqWaitTimed
>> PQgetResult

The processes has to be restarted to fix the issue.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

WARNING: the informations in this tracker are archived. Please submit new tickets or comments to the new tracker.


Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.

Shared Ticket Bins

Referenced by

Pages