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 1n9AI9-00016a-6T for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Jan 2022 18:30: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 1n9AI8-0007HX-38 for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Jan 2022 18:30:12 +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 1n9AI7-0007HN-QG for pgsql-hackers@lists.postgresql.org; Sun, 16 Jan 2022 18:30:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9AI5-0006wy-MI for pgsql-hackers@lists.postgresql.org; Sun, 16 Jan 2022 18:30:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 20GIU85F3781073; Sun, 16 Jan 2022 13:30:08 -0500 From: Tom Lane To: Julien Rouhaud cc: pgsql-hackers@lists.postgresql.org Subject: Re: Isn't wait_for_catchup slightly broken? In-reply-to: <20220116093938.xax7wdxbdqy6i5gg@jrouhaud> References: <2368336.1641843098@sss.pgh.pa.us> <3612314.1642287482@sss.pgh.pa.us> <20220116093938.xax7wdxbdqy6i5gg@jrouhaud> Comments: In-reply-to Julien Rouhaud message dated "Sun, 16 Jan 2022 17:39:38 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3781071.1642357808.1@sss.pgh.pa.us> Date: Sun, 16 Jan 2022 13:30:08 -0500 Message-ID: <3781072.1642357808@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud writes: > On Sat, Jan 15, 2022 at 05:58:02PM -0500, Tom Lane wrote: >> Here's a version that makes sure that callers specify a write position not >> an insert position. I also simplified the callers wherever it turned >> out that they could just use the default parameters. > LGTM, and passes make check-world on my machine. Pushed, thanks for reviewing. regards, tom lane