From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Wagner <mawagner@mail.uni-mainz.de>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: PG/DBI: 'NOTICE: UserAbortTransactionBlock and not in in-progress state'
Date: Fri, 26 May 2000 12:19:52 -0400
Message-ID: <2361.959357992@sss.pgh.pa.us> (raw)
In-Reply-To: <392E17D1.83B13A21@mail.uni-mainz.de>
References: <392E17D1.83B13A21@mail.uni-mainz.de>
Markus Wagner <mawagner@mail.uni-mainz.de> writes:
> I am using PG 6.5.1 and DBI. My Perl programs always print to stderr:
> "NOTICE: UserAbortTransactionBlock and not in in-progress state" or
> "NOTICE: EndTransactionBlock and not inprogress/abort state"
> I tried to do <stmthandle> -> finish and <dbhandle> -> commit after each
> query, but the messages still appear.
I think you're doing too much rather than too little. Those notices
suggest that you're sending out an extra ABORT or COMMIT command after
the transaction's already been aborted/committed.
IIRC, DBI has an autocommit feature that sends out COMMITs for you.
If you have that turned on, *and* you are explicitly committing, then
that's probably the cause of the extra commits. Get rid of one or
the other.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, mawagner@mail.uni-mainz.de
Subject: Re: PG/DBI: 'NOTICE: UserAbortTransactionBlock and not in in-progress state'
In-Reply-To: <2361.959357992@sss.pgh.pa.us>
References: <392E17D1.83B13A21@mail.uni-mainz.de> <2361.959357992@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox