Psycopg and threads problem

Alban Hertroys alban at
Mon Sep 20 14:43:38 CEST 2004


I'm using psycopg to insert records in a number of threads. After the 
threads finish, another thread runs to collect the inserted data. Now, 
my problem is that psycopg let's my threads end before the inserts 
actually took place, resulting in my collecting thread finding no 
records... They are inserted after it checks.

Is there a way to tell psycopg or python to wait until the insert took 


More information about the Python-list mailing list