Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0291C63246D for ; Sat, 3 Jul 2010 07:08:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 42422-07 for ; Sat, 3 Jul 2010 10:08:13 +0000 (UTC) X-Greylist: delayed 01:31:25.479403 by SQLgrey-1.7.6 Received: from faith.micfo.com (faith.micfo.com [64.120.14.82]) by mail.postgresql.org (Postfix) with ESMTP id 942446323B2 for ; Sat, 3 Jul 2010 07:08:13 -0300 (ADT) Received: from 87-204-194-135.dg-net.pl ([87.204.194.135]:55001 helo=radek.localnet) by faith.micfo.com with esmtpa (Exim 4.69) (envelope-from ) id 1OUyDM-0002bn-2F for pgsql-jdbc@postgresql.org; Sat, 03 Jul 2010 03:36:44 -0500 From: =?utf-8?q?Rados=C5=82aw_Smogura?= To: pgsql-jdbc@postgresql.org Subject: Re: Unable to commit: transaction marked for rollback Date: Sat, 3 Jul 2010 10:36:46 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.32-gentoo-r7; KDE/4.4.4; x86_64; ; ) References: <20100701181528.GA97516@mr-paradox.net> <4C2CFDE1.1020308@mr-paradox.net> <4C2CBD620200002500032F49@gw.wicourts.gov> In-Reply-To: <4C2CBD620200002500032F49@gw.wicourts.gov> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201007031036.46492.mail@smogura.eu> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - faith.micfo.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - smogura.eu X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-10 required=5 tests=BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201007/15 X-Sequence-Number: 20680 Hi, It can be caused by other reasones then SQL error. You wrote that error occ= urs=20 after 5 hours, if you processing such long time in one transaction, then=20 server can mark transcation for rollback automaticlly (it can "think",=20 deadlock occured, too slow, infinite loop, etc...). You need to check Geron= imo,=20 setting about transactions timeouts. I've looked at error from your example, because I didn't belived such=20 behavior. Unfortunatly it's true. Postgresql disallow to execute next=20 statement if error occured - this is realy bad approach, because error can = be=20 from dupliacte keys etc. :( Regards, Radek Dnia czwartek 01 lipiec 2010 o 23:08:02 Kevin Grittner napisa=C5=82(a): > David Kerr wrote: > >> Have you checked the PostgreSQL log file for clues? If you're > >> not seeing what you need, you could tweak the logging to show > >> more. > >=20 > > We're trying that, it's (of course) intermittent and happens after > > like 5 hours. so huge logfiles, etc as usual. With > > log_statements=3Dnone turned on PG logs database errors. so it seems > > like whatever's happening isn't being considered an "error". more > > of a natural database transaction (like a lock) or something. does > > that sound about right? >=20 > Hmmm.... I was just guessing at the cause. With default logging, > if I do this: >=20 > test=3D# begin; > BEGIN > test=3D# select foo; > ERROR: column "foo" does not exist > LINE 1: select foo; > ^ > test=3D# select 'foo'; > ERROR: current transaction is aborted, commands ignored until end > of transaction block > test=3D# commit; > ROLLBACK >=20 > I see this in the log: >=20 > ERROR: column "foo" does not exist at character 8 > STATEMENT: select foo; > ERROR: current transaction is aborted, commands ignored until end > of transaction block > STATEMENT: select 'foo'; >=20 > If you aren't seeing something like that, I'm probably off-base in > my guess at the cause. Nothing else leaps to mind, unfortunately. >=20 > :-( >=20 > -Kevin