You can't sanely share a DB connection across processes like that. You can sort-of share a connection between threads, but only if you make sure the connection is only used by one thread at a time. That won't work between processes because there's client-side state for the connection stored in the client's address space.
"The difficult we do today; the impossible takes a little longer."
In reply to Re: Can't get multiple Parallel::ForkManager threads connecting to DBD::Pg database
by NetWallah
in thread Can't get multiple Parallel::ForkManager threads connecting to DBD::Pg database
by perlygapes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |