in reply to Re^2: Can't get multiple Parallel::ForkManager threads connecting to DBD::Pg database
in thread Can't get multiple Parallel::ForkManager threads connecting to DBD::Pg database

Apples and pears…

# YOU Thread 1 running for A Starting A under process id -6452 Thread 2 running for B Starting B under process id -8912 Thread 3 running for F # FROM HERE DBD::Pg DBD::Pg::db clone failed: handle 2 is owned by thread 33b7e8 not curre +nt thread 3f29dc8 (handles can't be shared between threads and your d +river may need a CLONE method added) at C:\Users\USERNAME\eclipse-wor +kspace\WORKSPACE\dbi_test.pl line 297.

«The Crux of the Biscuit is the Apostrophe»

  • Comment on Re^3: Can't get multiple Parallel::ForkManager threads connecting to DBD::Pg database
  • Download Code

Replies are listed 'Best First'.
Re^4: Can't get multiple Parallel::ForkManager threads connecting to DBD::Pg database
by Anonymous Monk on Jul 23, 2021 at 01:13 UTC
    Therefore the driver as implemented only allows the handle to be used by the "main thread" of the process in question ... and very specifically checks if it isn't.