Subject: | thread safety and CLONE. |
$dbh->connect;
$dbh->disconnect;
undef $dbh; #what should I do here ? how to really destroy $dbh ?
threads->create(...); # each thread allocate its own connection.
Pg has no driver CLONE() function so is unsafe threaded
thread failed to start: DBD::Pg::dr connect failed: handle 1 is owned by thread 804c008 not current thread 83fc3b8 (handles can't be shared between threads and your driver may need a CLONE method added) at /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/DBI.pm line 590, <F> line 2.
perl DBI 1.40-4
perl DBD Pg 1.31-5