Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D3CE51337BA6 for ; Mon, 18 Apr 2011 20:12:56 -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 96394-03 for ; Mon, 18 Apr 2011 23:12:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 8CB7F1337BA3 for ; Mon, 18 Apr 2011 20:12:49 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p3INCnob018343; Mon, 18 Apr 2011 19:12:49 -0400 (EDT) To: "Kevin Grittner" cc: pgsql-jdbc@postgresql.org Subject: Re: Test suite fails on non-default configuration In-reply-to: <4DAC66AB020000250003C97F@gw.wicourts.gov> References: <4DAC66AB020000250003C97F@gw.wicourts.gov> Comments: In-reply-to "Kevin Grittner" message dated "Mon, 18 Apr 2011 16:28:27 -0500" Date: Mon, 18 Apr 2011 19:12:49 -0400 Message-ID: <18342.1303168369@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/71 X-Sequence-Number: 21797 "Kevin Grittner" writes: > // PostgreSQL defaults to READ COMMITTED > assertEquals(Connection.TRANSACTION_READ_COMMITTED, > con.getTransactionIsolation()); > Should the unit tests really be failing based on configuration > options? Well, for a comparison point, you can certainly make the server's regression tests fail too if you whack the configuration around enough. I agree that the above seems perhaps overly fragile, but I don't think you can expect to have a general principle that the JDBC tests should pass regardless of configuration. It's more a question of how painful is it to support any particular nondefault configuration choice, and does it seem worth it based on real-world usage of the choice. regards, tom lane