Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq298-0005vi-Bi for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2016 17:30:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aq297-00079g-NC for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2016 17:30:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aq297-00079Z-1R for pgsql-hackers@postgresql.org; Tue, 12 Apr 2016 17:30:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aq293-0004Fr-N2 for pgsql-hackers@postgresql.org; Tue, 12 Apr 2016 17:30:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3CHUVB1009328; Tue, 12 Apr 2016 13:30:31 -0400 From: Tom Lane To: Kevin Grittner cc: Alvaro Herrera , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < In-reply-to: References: <20160412170804.GA914597@alvherre.pgsql> Comments: In-reply-to Kevin Grittner message dated "Tue, 12 Apr 2016 12:22:01 -0500" Date: Tue, 12 Apr 2016 13:30:31 -0400 Message-ID: <9327.1460482231@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) 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 Kevin Grittner writes: > On Tue, Apr 12, 2016 at 12:08 PM, Alvaro Herrera > wrote: >> old_snapshot_threshold is PGC_POSTMASTER, so this is okay AFAICS, but >> perhaps it'd be a good idea to add a oneline comment to guc.c indicating >> to verify this code if there's an intention to lift that limitation -- > Perhaps, but this would be one of at least a dozen land mines that > exist for trying to modify this setting to be read on reload. > FWIW, I spent a fair amount of time trying to make it PGC_SIGHUP, > since it would be very nice to allow that; but I kept running into > one problem after another with it, some of which were very hard to > see how to fix. It'd be good if you document the problems you found somewhere, before you forget them, just in case somebody does want to try to lift the restriction. I agree that scattered code comments wouldn't be the way. Just a quick email to -hackers to get the info into the archives might be enough. 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