Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMM17-0003Zj-HH for pgsql-hackers@postgresql.org; Thu, 11 Oct 2012 16:53:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMM16-0003ya-5L for pgsql-hackers@postgresql.org; Thu, 11 Oct 2012 16:53:48 +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 q9BGreuw019902; Thu, 11 Oct 2012 12:53:40 -0400 (EDT) From: Tom Lane To: Simon Riggs cc: Robert Haas , Tomas Vondra , Thom Brown , pgsql-hackers@postgresql.org Subject: Re: change in LOCK behavior In-reply-to: References: <5075D8DF.6050500@fuzzy.cz> <5075DFC2.9090306@fuzzy.cz> <12761.1349910622@sss.pgh.pa.us> <14951.1349916214@sss.pgh.pa.us> Comments: In-reply-to Simon Riggs message dated "Thu, 11 Oct 2012 09:57:28 +0100" Date: Thu, 11 Oct 2012 12:53:40 -0400 Message-ID: <19901.1349974420@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/586 X-Sequence-Number: 214822 Simon Riggs writes: > On 11 October 2012 01:43, Tom Lane wrote: >> I think we have to revert and go back to the drawing board on this. > Given that change was also sold on the basis of higher performance, I > suggest we retest performance to check there is a gain. If there is > still a gain, I suggest we add this as a SIGHUP option, default to > off, rather than completely remove it. I'm not in favor of adding a GUC for this. The right fix is to redesign the locking/snapshotting process, not expose its warts in bizarre little knobs that make users deal with the tradeoffs. Maybe what we really need is to find a way to make taking a snapshot a lot cheaper, such that the whole need for this patch goes away. We're not going to get far with the idea of making SnapshotNow MVCC-safe unless it becomes a lot cheaper to get an MVCC snapshot. I recall some discussion of trying to reduce a snapshot to a WAL offset --- did that idea crash and burn, or is it still viable? Anyway, I believe that for now we ought to revert and rethink, not look for band-aid ways of preserving this patch. regards, tom lane