Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 47B5D63319E for ; Thu, 1 Jul 2010 17:46:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 81610-08 for ; Thu, 1 Jul 2010 20:46:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vexbert.mr-paradox.net (vexbert.mr-paradox.net [198.145.180.174]) by mail.postgresql.org (Postfix) with ESMTP id 43248632F04 for ; Thu, 1 Jul 2010 17:46:35 -0300 (ADT) Received: from [192.168.1.100] (c-24-20-21-238.hsd1.or.comcast.net [24.20.21.238]) (Authenticated sender: dmk) by vexbert.mr-paradox.net (Postfix) with ESMTP id 8F6BA845E5; Thu, 1 Jul 2010 16:46:33 -0400 (EDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.96 at vexbert.mr-paradox.net Message-ID: <4C2CFDE1.1020308@mr-paradox.net> Date: Thu, 01 Jul 2010 13:43:13 -0700 From: David Kerr User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-jdbc@postgresql.org Subject: Re: Unable to commit: transaction marked for rollback References: <20100701181528.GA97516@mr-paradox.net> <4C2C98930200002500032F20@gw.wicourts.gov> <4C2CE533.8010301@mr-paradox.net> <4C2CA4180200002500032F32@gw.wicourts.gov> In-Reply-To: <4C2CA4180200002500032F32@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.51 tagged_above=-10 required=5 tests=BAYES_05=-0.5, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/5 X-Sequence-Number: 20670 On 7/1/2010 12:20 PM, Kevin Grittner wrote: > David Kerr wrote: > >> Would postgres normally log the error in the TX? > > A previous statement should have generated the original exception, > if that's what you mean. ok. >> (it's not, which is why i'm asking) > > Where are you checking? If you're talking about exceptions you're > fielding, it wouldn't be the first time I've seen sloppy exception > handling hide the first exception (the one that actually matters) > and throw a secondary exception. One common mistake is to catch the > first exception and try to do some cleanup, but allow an exception > to be thrown from the cleanup code -- completely hiding the first > exception. I'm checking the Postgres logs. (I'm not Java savvy, but i'll pass the info along to my developers) > > There are, of course, variations on this, but you get the gist of > it. > > 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. We're trying that, it's (of course) intermittent and happens after like 5 hours. so huge logfiles, etc as usual. With log_statements=none 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? Thanks Dave