Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rso67-009O5Z-09 for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Apr 2024 18:15:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rso66-00416m-5i for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Apr 2024 18:15:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rso65-00416d-C5 for pgsql-hackers@lists.postgresql.org; Fri, 05 Apr 2024 18:15:29 +0000 Received: from wfhigh2-smtp.messagingengine.com ([64.147.123.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rso5y-000mwG-Jb for pgsql-hackers@lists.postgresql.org; Fri, 05 Apr 2024 18:15:28 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 0EBB41800117; Fri, 5 Apr 2024 14:15:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 05 Apr 2024 14:15:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712340919; x= 1712427319; bh=fttj40lTlJTiLgd/zLLTKggfCqxMy36Yd5+xp/D1b9I=; b=h qcJ7mXbItR6D/vby9981BxcbaZU+TbaV25Hv8Nr/B8mawG9vvGJHwcxXTNuAp5O7 QpawS6RfEydolL9EZbtaChKqHL1+n9uAp9MmQwge+8PEIgG2pKXVDmSD0Dtz6tsM PjfLoOkoixYtl0tVOSG/1ctTNp08dYJUf2vs2c2nf/VjQBBONis2TbwF7/PDY3G9 n3J/TX+xjxrwkxX+SXJzFWWRGL7ktR1z/iJT2OdMkedkySWXpxVU1TU8h0m87Siu ASyIGBaH7enCwocGut7DUDFXyRCnSZEtHqMifhqsn1Kf0cqC4B29O1rf7xN54fTk IcVVy4CqWp1K+gL/e+RTQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegtddguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpeektdfhkeevudeugfeuleetkefgjeegkeeuudduueev uedvudffgffgteeihfdvfeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpd gvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Apr 2024 14:15:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1712340916; bh=UrVPfyBHRwOHuuGQSDRMNVFjap32wev6z7y5WZxthK4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=WcmM3iCm+AEr6tqG4NOniTINU2XZhOtwzidkWdS0ZvAnDuXxw+bIYQh6FFrBEW6Si c0zS1Cgls0GPoI0e44MbitSYpSk0gthYhAEg4ucqBwNC5WJ4o3GLiLgEo5BzfapIP9 +9wjLG8snxURl8PBF6yn0XYItHZuwufyyO+1Zl66bgo0gcy/IFOAb8CR1WkV+sXD7q OV6LVJ49h2Cj0XP+W9FF2XRE6v1UmA4SYUuSuZeeLLH2HblBuBXCQHuB8+rk7MpcQ0 CptHPbHxLSIdCYeNkARoCvbdlgaOONTdAeKr+GOlWsxTWrFW9ONEVmuEFW8/GkbgoT mPqyaiXmN7zsw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 6EFBB46F; Fri, 5 Apr 2024 20:15:16 +0200 (CEST) Date: Fri, 5 Apr 2024 20:15:16 +0200 From: Alvaro Herrera To: Alexander Korotkov Cc: Pavel Borisov , Bharath Rupireddy , Kartyshov Ivan , Euler Taveira , Thomas Munro , Peter Eisentraut , Amit Kapila , Dilip Kumar , Peter Smith , pgsql-hackers@lists.postgresql.org Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed Message-ID: <202404051815.eri4u5q6oj26@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, BTW I noticed that https://coverage.postgresql.org/src/backend/commands/waitlsn.c.gcov.html says that lsn_cmp is not covered by the tests. This probably indicates that the tests are a little too light, but I'm not sure how much extra effort we want to spend. I'm still concerned that WaitLSNCleanup is only called in ProcKill. Does this mean that if a process throws an error while waiting, it'll not get cleaned up until it exits? Maybe this is not a big deal, but it seems odd. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Now I have my system running, not a byte was off the shelf; It rarely breaks and when it does I fix the code myself. It's stable, clean and elegant, and lightning fast as well, And it doesn't cost a nickel, so Bill Gates can go to hell."