Re: psycopg2 hang with multithread frequent queries

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: David Roid <dataroid(at)gmail(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: psycopg2 hang with multithread frequent queries
Date: 2012-09-14 17:35:33
Message-ID: CA+mi_8ahmhEuBveLryfUQ9f588vWy=xr-03SKYdeZzek=9e-KA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Fri, Sep 14, 2012 at 5:55 PM, David Roid <dataroid(at)gmail(dot)com> wrote:

> 2. When one of the slow ones get called, the whole python process hang, with
> the postgresql process in 'idle in transaction'; note i'm very alert with
> psycopg2's all-in-transaction style, i'm very sure there is a
> commit/rollback to end the trac, the python process just stucks!

Is there any query with "waiting" flag set to true in
pg_stat_activity? That would be an indication of queries stuck against
a lock.

-- Daniele

In response to

Browse psycopg by date

  From Date Subject
Next Message Vishnu VV 2012-09-14 17:55:06 Re: commercial license availability
Previous Message Daniele Varrazzo 2012-09-14 17:30:35 Re: commercial license availability