Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jML77-0003Px-1k for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2020 00:32:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jML74-0006Ht-Sx for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2020 00:32:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jML74-0006Da-Lm for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2020 00:32:10 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jML6w-0006bW-Py; Thu, 09 Apr 2020 00:32:09 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jML6q-0004Yv-Af; Wed, 08 Apr 2020 20:31:56 -0400 Date: Wed, 8 Apr 2020 20:31:56 -0400 From: Bruce Momjian To: Andres Freund Cc: Robert Haas , "Jonathan S. Katz" , Alexander Korotkov , PostgreSQL Hackers , Peter Geoghegan , Alvaro Herrera , Thomas Munro , David Rowley Subject: Re: Improving connection scalability: GetSnapshotData() Message-ID: <20200409003156.GA9858@momjian.us> References: <20200406133959.viql5fqecog6mppj@alap3.anarazel.de> <20200406235228.lnxcau2wgocnnn22@alap3.anarazel.de> <20200407121503.zltbpqmdesurflnm@alap3.anarazel.de> <20200408124318.amzvnpsqhy747wqp@alap3.anarazel.de> <07c6af6c-c30d-52e4-8716-e3688c3ef265@postgresql.org> <20200408220623.GA23414@momjian.us> <20200408222534.56ys4lt7xd3dvgqu@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408222534.56ys4lt7xd3dvgqu@alap3.anarazel.de> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Apr 8, 2020 at 03:25:34PM -0700, Andres Freund wrote: > Hi, > > On 2020-04-08 18:06:23 -0400, Bruce Momjian wrote: > > If we don't commit this, where does this leave us with the > > old_snapshot_threshold feature? We remove it in back branches and have > > no working version in PG 13? That seems kind of bad. > > I don't think this patch changes the situation for > old_snapshot_threshold in a meaningful way. > > Sure, this patch makes old_snapshot_threshold scale better, and triggers > fewer unnecessary query cancellations. But there still are wrong query > results, the tests still don't test anything meaningful, and the > determination of which query is cancelled is still wrong. Oh, OK, so it still needs to be disabled. I was hoping we could paint this as a fix. Based on Robert's analysis of the risk (no SQL syntax, no storage changes), I think, if you are willing to keep working at this until the final release, it is reasonable to apply it. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +