Psycopg and threads problem
Alban Hertroys
alban at magproductions.nl
Mon Sep 20 08:43:38 EDT 2004
Hello,
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
place?
Alban.
More information about the Python-list
mailing list