X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 140933A1991 for ; Fri, 14 Jan 2005 17:17:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91294-10 for ; Fri, 14 Jan 2005 17:16:52 +0000 (GMT) Received: from web14221.mail.yahoo.com (web14221.mail.yahoo.com [66.163.171.105]) by svr1.postgresql.org (Postfix) with SMTP id 246F03A18A7 for ; Fri, 14 Jan 2005 17:16:51 +0000 (GMT) Received: (qmail 5871 invoked by uid 60001); 14 Jan 2005 17:16:50 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=AyEqTD+nHjWZRMZXcftdTQY7Qmri9NO4RYfQAs1Ox8BscSdb+d27R6Z00+VGzeHAARqQA6U9NUFcFFbxDrWufal1Vo4iLAayBwjVCFBjwih0qUs162+7SPXv+0WcoPVGWqGwUDfORFQLCfRVQlGupCjesLQY5fSxcjr3asHSXBM= ; Message-ID: <20050114171650.5869.qmail@web14221.mail.yahoo.com> Received: from [141.151.83.165] by web14221.mail.yahoo.com via HTTP; Fri, 14 Jan 2005 09:16:50 PST Date: Fri, 14 Jan 2005 09:16:50 -0800 (PST) From: "j.random.programmer" Subject: Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently To: Csaba Nagy Cc: pgsql-jdbc@postgresql.org In-Reply-To: <1105721842.14493.52.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.267 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200501/123 X-Sequence-Number: 12003 > an error. And I don't believe commit fails silently, > it should give you > an error. Nope, no error. See the original post, there isn't any error in the postgresql logs either, and no error at the JDBC layer. > (notably Oracle). So I would expect you're coming > from an oracle DB > experience... Nope. I've been using Postgresql for years now (after having used mysql/innodb and gotten rather tired of _that_). :-] > Please note that setting a savepoint in postgres is > not nearly free, so > be careful how often you do it. After further testing, the standalone psql client also shows the same behavior so I guess this is a postgresql database thing, not driver specific. Here's my humble suggestion. If technically possible, have the driver throw a SQLExeption when trying to commit() and when the driver knows that commit() is going to fail. Maybe the driver can simple track if it's recieved any kind of error messages on a given connection. If so, then when commit() is called on that connection, the driver should throw a SQLException ? Otherwise, you're asking for very esoteric bugs to say you have commit() succesfully yet fail silently. That's more like a mysql thing, *not* a postgresql thing right ? Best regards, --j __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com