Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D133E632A2E for ; Fri, 11 Dec 2009 08:09:37 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 86281-06 for ; Fri, 11 Dec 2009 12:09:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mail.postgresql.org (Postfix) with ESMTP id D5E3C63296B for ; Fri, 11 Dec 2009 08:09:26 -0400 (AST) Received: by pwi15 with SMTP id 15so597112pwi.3 for ; Fri, 11 Dec 2009 04:09:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=x88qjKKsKKhSpLSO+2j2ZLE5VZuGwIgK7nW8SKRtcJM=; b=AB57atsO0DBBTWf0JlTPmSEu+6VoHNtOoiVUud7O19cysMGILE/KsgsSPokeLZbpFk ZGcA0/8r+3zCE7dWZY6r8FVfox/ncsi4ROps7hFWMqhLtBl1spt2a5XOV4L56+VNg7ZP ZpKjhukeW7DYWThbFLJCYJRXaF1XmkijKzAlg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=p+F2PaeNMIg+e8QdddJGQ7sh6nr4jd1WJQJH4BuyovK0Eg3kX7YT/HQRq8XZXmj58S JuHfhSwM/0Rmer8snu4+f2wjQVgoxFS5GFYhHcsFbojCUVjF6/dnJ9/CE8Ob1d4nDODM Yg56rznLVnbqWCkU2obmWHf92PJD6VOWyHagY= MIME-Version: 1.0 Received: by 10.140.248.8 with SMTP id v8mr786842rvh.228.1260533364079; Fri, 11 Dec 2009 04:09:24 -0800 (PST) In-Reply-To: <4B2198E4.5090306@hogranch.com> References: <4B21737B.50009@hogranch.com> <4B219025.5070607@hogranch.com> <4B219538.2090203@opencloud.com> <4B2198E4.5090306@hogranch.com> From: Greg Stark Date: Fri, 11 Dec 2009 12:09:04 +0000 X-Google-Sender-Auth: e24eb6f97ca62ac7 Message-ID: <407d949e0912110409xc613b48p633d1bf36c1f650b@mail.gmail.com> Subject: Re: Connection.setReadOnly() To: John R Pierce Cc: Oliver Jowett , pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.576 tagged_above=-10 required=5 tests=AWL=0.023, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/21 X-Sequence-Number: 20102 On Fri, Dec 11, 2009 at 12:57 AM, John R Pierce wrote: >> Does the Oracle driver not follow the JDBC spec here? Or is it just that >> long-term open transactions don't cause problems on Oracle? >> > > the latter Well eventually on Oracle you would get a "Snapshot too old" error. Postgres chooses not to have this unpredictable error and instead have unpredictable space usage -- it's an inevitable engineering tradeoff. However recent versions of Oracle have tried various strategies to reduce the frequency of this error -- likewise recent versions of Postgres have made efforts to reduce this issue as well. If you use 8.4 you should be much less likely to run into this problem. -- greg