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 1ltJcm-0005KA-DF for pgsql-general@arkaria.postgresql.org; Wed, 16 Jun 2021 00:41:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltJcl-0002hg-9e for pgsql-general@arkaria.postgresql.org; Wed, 16 Jun 2021 00:41:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltJcl-0002hY-0e for pgsql-general@lists.postgresql.org; Wed, 16 Jun 2021 00:41:43 +0000 Received: from smtp75.ord1c.emailsrvr.com ([108.166.43.75]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltJch-0000p2-70 for pgsql-general@lists.postgresql.org; Wed, 16 Jun 2021 00:41:42 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp10.relay.ord1c.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 8FA8B4034A; Tue, 15 Jun 2021 20:41:37 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: hot_standby_feedback implementation From: Christophe Pettus In-Reply-To: Date: Tue, 15 Jun 2021 17:41:36 -0700 Cc: "pgsql-generallists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Peter Geoghegan X-Mailer: Apple Mail (2.3445.9.7) X-Classification-ID: b7885cbd-476f-4b96-ae62-b96f8f46f59f-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jun 15, 2021, at 17:30, Peter Geoghegan wrote: > It pretty much works by making the WAL sender process on the primary > look like it holds a snapshot that's as old as the oldest snapshot on > the replica. >=20 > A replica can block VACUUM on the primary *directly* by holding a > table-level lock, though in practice only when somebody on the replica > acquires an AccessExclusiveLock -- which is presumably rare in > practice. Thank you! Attempting to track down a sudden burst of every session = waiting on lock_manager LW locks, and part of that is finding the source = of locks.=