Re: psycopg2 hang with multithread frequent queries - Mailing list psycopg

From P. Christeas
Subject Re: psycopg2 hang with multithread frequent queries
Date
Msg-id 201209180239.34310.xrg@linux.gr
Whole thread Raw
In response to Re: psycopg2 hang with multithread frequent queries  (David Roid <dataroid@gmail.com>)
Responses Re: psycopg2 hang with multithread frequent queries
List 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!


psycopg by date:

Previous
From: David Roid
Date:
Subject: Re: psycopg2 hang with multithread frequent queries
Next
From: Daniele Varrazzo
Date:
Subject: Re: psycopg2 hang with multithread frequent queries