[Psycopg] Solved: cur.fetchall() failing... Sorta :)

Federico Di Gregorio fog at initd.org
Thu Sep 20 21:55:54 CEST 2007


Il giorno gio, 20/09/2007 alle 15.49 -0400, Jerry LeVan ha scritto:
> When I ran  the programs I noticed that a single thread did not
> hang the UI but two threads ( cursors derived from the same  
> connection) would!

This is obvious because the second thread is locked out of the
connection so can't release the GIL (the GIL is released just before
calling PQ functions.)

I'll revert my changes, making sure that everything still works.

federico

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                fog at debian.org
INIT.D Developer                                           fog at initd.org
     One key. One input. One enter. All right. -- An american consultant
           (then the system crashed and took down the *entire* network)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
	firmata digitalmente
Url : http://lists.initd.org/pipermail/psycopg/attachments/20070920/685d9abc/attachment.pgp 


More information about the Psycopg mailing list