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 7AA9B3A1ADB for ; Fri, 14 Jan 2005 22:26:50 +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 25869-05 for ; Fri, 14 Jan 2005 22:26:42 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 9F9253A19DE for ; Fri, 14 Jan 2005 22:26:43 +0000 (GMT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j0EMQcNS001465 for ; Fri, 14 Jan 2005 17:26:38 -0500 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j0EMQcr01872 for ; Fri, 14 Jan 2005 17:26:38 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j0EMQZiS006073 for ; Fri, 14 Jan 2005 17:26:35 -0500 From: Vadim Nasardinov Organization: Red Hat / Westford To: pgsql-jdbc@postgresql.org Subject: Re: Weird behavior in transaction handling (Possible bug ?) Date: Fri, 14 Jan 2005 17:27:02 -0500 User-Agent: KMail/1.7 References: <20050114161304.32600.qmail@web14223.mail.yahoo.com> <200501141707.38043@vadim.nasardinov> <41E843C0.2080005@fastcrypt.com> In-Reply-To: <41E843C0.2080005@fastcrypt.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501141727.02241@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/136 X-Sequence-Number: 12016 On Friday 14 January 2005 17:12, Dave Cramer wrote: > I see no point in either of these as the solution is simple... Don't > ignore errors. This is a misrepresentation of the other side's argument. I mentioned this thread earlier in this discussion: http://archives.postgresql.org/pgsql-advocacy/2004-03/threads.php#00067 Consider, in particular, http://archives.postgresql.org/pgsql-advocacy/2004-03/msg00070.php The guy is most emphatically _not_ ignoring errors. Wouldn't you agree? The point of the solutions that Oliver proposed is not hard to see. I can write code that works unchanged with Oracle, Sybase, DB2, MySQL/InnoDB, Firebird and god knows what else. As soon as I throw PostgreSQL into the mix, I need to handle a radically different transaction semantics all of a sudden. Oliver's proposal obviates the need for special-casing PostgreSQL in my application code, albeit admittedly at the expense of incurring a measurable performance hit. Which is fine with me, as long as I'm informed of the tradeoff. YMMV.