X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 68C3452940 for ; Thu, 21 Jul 2005 13:14:08 -0300 (ADT) 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 98363-05 for ; Thu, 21 Jul 2005 16:14:04 +0000 (GMT) Received: from mr1.surnet.cl (smtp1.surnet.cl [216.155.73.162]) by svr1.postgresql.org (Postfix) with ESMTP id 6DF3452815 for ; Thu, 21 Jul 2005 13:14:02 -0300 (ADT) Received: from smtp1.surnet.cl (216.155.73.168) by mr1.surnet.cl (7.0.031.3) id 42587EDE01709B36; Thu, 21 Jul 2005 12:13:20 -0400 Received: from smtp2.surnet.cl (smtp2.surnet.cl []) by mr1.surnet.cl ([216.155.73.168]); Thu, 21 Jul 2005 16:13:17 +0000 Received: from cluster.surnet.cl (216.155.73.164) by smtp2.surnet.cl (7.0.031.3) id 4259ADE300E26861; Thu, 21 Jul 2005 12:12:38 -0400 Received: from alvh.no-ip.org (200.85.218.66) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 42B3EF60004B54C5; Thu, 21 Jul 2005 12:13:01 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 5FC69C3711D; Thu, 21 Jul 2005 12:13:34 -0400 (CLT) Date: Thu, 21 Jul 2005 12:13:34 -0400 From: Alvaro Herrera To: Erik Wasser Cc: pgsql-sql@postgresql.org Subject: Re: Are long term never commited SELECT statements are a problem? Message-ID: <20050721161334.GH24366@alvh.no-ip.org> References: <200507211557.58822.erik.wasser@iquer.net> <20050721151811.GA513@winnie.fuhr.org> <200507211740.57999.erik.wasser@iquer.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200507211740.57999.erik.wasser@iquer.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.391 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO, RCVD_IN_NJABL_PROXY X-Spam-Level: * X-Archive-Number: 200507/183 X-Sequence-Number: 22161 On Thu, Jul 21, 2005 at 05:40:57PM +0200, Erik Wasser wrote: > > When a transaction is on the serializable level, a SELECT query sees > > only data committed before the transaction began; it never sees either > > uncommitted data or changes committed during transaction execution by > > concurrent transactions. (However, the SELECT does see the effects of > > previous updates executed within its own transaction, even though they > > are not yet committed.) > Why do I see in the first transaction data from the commited second > transaction? Doesn't prove that the documentation on the above URL > wrong? Because it says "in the serializable level," which they acquire when you execute "SET TRANSACTION ISOLATION LEVEL SERIALIZABLE". -- Alvaro Herrera () Officer Krupke, what are we to do? Gee, officer Krupke, Krup you! (West Side Story, "Gee, Officer Krupke")