I'm having a hard time getting manual transactions to work as documented in DBD::Pg, or I'm simply misunderstanding said documentation.
My understanding is that if I want to manually manage transactions, I should turn off AutoCommit.
$dbh->{AutoCommit} = 0;
$dbh->begin_work;
But when I do this, I get continual errors
DBD::Pg::db begin_work failed: Already in a transaction
To get this to work, I need to turn on AutoCommit first.
$dbh->{AutoCommit} = 1;
$dbh->begin_work;
But that doesn't seem to agree with any of the documentation.
Am I simply misunderstanding it?