in reply to Re: How to remove the warning: "there is already a transaction in progress" when using lock table
in thread How to remove the warning: "there is already a transaction in progress" when using lock table

Correct. With AutoCommit off, DBI/DBD::Pg automatically sends START TRANSACTION (or the identical BEGIN) when you do() or execute().

If you want explicit control over this, settings AutoCommit to true should work.

See http://search.cpan.org/~timb/DBI-1.634/DBI.pm#AutoCommit and http://search.cpan.org/~turnstep/DBD-Pg-3.5.3/Pg.pm#AutoCommit_(boolean).

"For me, programming in Perl is like my cooking. The result may not always taste nice, but it's quick, painless and it get's food on the table."
  • Comment on Re^2: How to remove the warning: "there is already a transaction in progress" when using lock table