On Tue, Sep 29, 2009 at 3:56 PM, Andy Colson <andy(at)squeakycode(dot)net> wrote:
> Unless I'm mistaken, if AutoCommit is enabled, then each statement will be
> commit for you. The commit() and the rollback() are both useless.
>
To clarify, the DBI driver turns off AutoCommit in postgres when
begin_work() is called. It does not however disable its internal
AutoCommit flag.
The question still stands: if the COMMIT fails, ROLLBACK is not
required in Postgres. Is this portable to other databases?