Re: psycopg2 hang with multithread frequent queries

From: "P(dot) Christeas" <xrg(at)linux(dot)gr>
To: psycopg(at)postgresql(dot)org
Subject: Re: psycopg2 hang with multithread frequent queries
Date: 2012-09-17 23:39:32
Message-ID: 201209180239.34310.xrg@linux.gr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Tuesday 18 September 2012, David Roid wrote:
> Hi Daniele, Federico,
>
> Just want to know, if I keep signal handler but switch from thread to
> subprocess, i.e. put the signal handler code with database queries into
> another process, is that safe?
>

IMHO, doing anything more than setting some "flag" variables and waking up
regular threads is bad practice for a signal handler..

--
Say NO to spam and viruses. Stop using Microsoft Windows!

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2012-09-18 00:34:57 Re: psycopg2 hang with multithread frequent queries
Previous Message David Roid 2012-09-17 23:24:08 Re: psycopg2 hang with multithread frequent queries