Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2ijQ-0007GW-Vr for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jul 2013 14:10:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V2ijQ-0006Hv-Cc for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jul 2013 14:10:56 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2ijO-0006Ho-Pg for pgsql-hackers@postgresql.org; Fri, 26 Jul 2013 14:10:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2ijI-0004sE-3L for pgsql-hackers@postgresql.org; Fri, 26 Jul 2013 14:10:53 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r6QEAkqo015346; Fri, 26 Jul 2013 10:10:46 -0400 (EDT) From: Tom Lane To: Robert Haas cc: pgsql-hackers@postgresql.org Subject: Re: getting rid of SnapshotNow In-reply-to: References: <2812.1374596914@sss.pgh.pa.us> <4668.1374603872@sss.pgh.pa.us> <5175.1374605629@sss.pgh.pa.us> <13646.1374842978@sss.pgh.pa.us> <14297.1374844687@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 26 Jul 2013 09:50:32 -0400" Date: Fri, 26 Jul 2013 10:10:46 -0400 Message-ID: <15345.1374847846@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Fri, Jul 26, 2013 at 9:18 AM, Tom Lane wrote: >> Robert Haas writes: >>> Well, that's still used in _bt_check_unique, unique_key_recheck >>> (trigger function to do a deferred uniqueness check), RI_FKey_check, >>> and rather extensively by sepgsql. I don't really have much desire to >>> do the work to get rid of it, though. >> Hm. I agree the first three may be all right, but I can't help >> suspecting that sepgsql is doing the wrong thing here. > sepgsql is using SnapshotSelf to find the old version of a tuple that > was updated by the core code just before. Oh. OK, then it reduces to the same case as the other three, ie we're looking at tuples we know to be update-locked. > [ interesting ruminations snipped ] Yeah, removing SnapshotNow catalog access certainly opens the doors for a lot of new thinking. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers