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.96) (envelope-from ) id 1wRRAq-002LSF-19 for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2026 09:00:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wRRAo-000vtC-0v for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2026 09:00:35 +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.96) (envelope-from ) id 1wRRAo-000vt3-00 for pgsql-hackers@lists.postgresql.org; Mon, 25 May 2026 09:00:34 +0000 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wRRAn-00000000g4J-1Kjx for pgsql-hackers@lists.postgresql.org; Mon, 25 May 2026 09:00:34 +0000 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-69d5730c579so2905771eaf.0 for ; Mon, 25 May 2026 02:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779699633; cv=none; d=google.com; s=arc-20240605; b=iGeqjr6Uzpgkb5LNo8oF04+tdJNAgVWCnJpBXqLLk0R3/zxRlOdn7pJGZ2OmWTJFHQ enbQ4WxWCwB5v9y9X0pb+IIBVEeu7WFjB0rjpHzXyAaC7xt/ndyKEwsvpzXO/VDulFA0 QKrtBLLFSQYbX5LV6JOnnvcYGZrkyu7zi0cM0fM+odbH0L7QdYV8jk7r7tTtvH5Tqn4k CZ+GAxQdrgf1Z9FKFVJDZ9G4/8l/Dn0y7k6VOmXvIw0gqaQTiKZJ7tVTqALWUjUYtbvV XHcLOzSnGuZ+KWMMWNC8PuiViGLrxBxV+hkd1elrPvsf42pyNtTdJcgQ9quRPURZlIkb MAFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=llnaPQalT2nfj+lhcFxhDwnYGwlvVKdwjeVzxMVfL5o=; fh=LUUnstvQS0w8BxthRp97G0ZVZ7VAHSBNWIYrQ/DuE9U=; b=GJ9RLP5pAlIw3A38bOfe1lMP4eK9Gi51XDedU+X32F20FVjtd4kHeiWl4qjUL8bgsC RmVU4Dd4TObyB0W99Fz0vPwQmRVpnRHPsgGjdsi/pCSesfJHfKMpbKiPmq0ie8iqCO2+ PYQ8OagOxnJIHgcMIs7SmaaPw751oZYGhi3CKoBmuhiIsOnXwwz/RsuucN0bRQ2Cp0Hj Dle3zpEgKl2+Jj9ezVwOx+/SrCeMT/ASLrFjIXJLlvsKWlxy5b3o/GRiR58oR0xgH2LZ ncAI1J8P0DaojbaJ4hEmZYcsDccA3Dz9pHJup3wC1kd1iuFO1/KOBQ6J0YlCWfp7IVDZ BTFw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779699633; x=1780304433; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=llnaPQalT2nfj+lhcFxhDwnYGwlvVKdwjeVzxMVfL5o=; b=sy3NHFs5eb7kwQsvLvTtSbD7f83icER38DhveiySM49MOaEA4FZj/suh+ZRbtfYmiN vjvYL7D2U4YNsTrFyjOvu6GMPBElIeeszpD5kUy9O8CAfmzgFBve1VBJQ1GsBDvNmqvk rjR4GtArTXl42km/yGv+HvyTUydF/cTM47khjq9EJdzZR0vhTuvgnjEJ8GdaIB68ZmI6 1HfEHtSPSxot8YAiU0fDIm2EIA3G/Y0MD47nKuUzZ69QC4uFdOZ7my11/WT4pGcpB4Tv EKDppXWPXRK5rGogKO63+4uNJua1kVgYEUD8/Z4PPsG92COPFfPWIhjdflBlozgxkF6u A7KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779699633; x=1780304433; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=llnaPQalT2nfj+lhcFxhDwnYGwlvVKdwjeVzxMVfL5o=; b=blOESHDSAiw4q7t1zvdB/QblMMDBFCyfFifiLTUGh96M9zRbFyzvdijPcgtJpH8c49 haGWO2/dVvJEW3Z1Jqq0jNMks4talDHu3/mh5Sc5ce5ZmWjiC9Mk5vj1Y3UNSaz8xz9Q 0PJ/MOueyFD5k4R42waBf2nMAbBrZgEiHVpRm+V4loMcXrOOsROrmHBsnMhdMyc4EB/f SX5d31Fcb1uSP8V+v+OTgWJXUQKostKaTpUScgymQk9nYhvFa1KlcV5EtfCvzYnLTuzC M9MgygUvD5s18172p9aJ7O+g22t4k14Fv2yx9L6dagnvgo87aOezrcD4YLaCARfrNIhd J1VQ== X-Forwarded-Encrypted: i=1; AFNElJ8fmShQ33ihPzDkOAybYo089mV3w7pnJkcf0AZf2HtafeLvODG82jeF1qp9X77QXIs6Slzvk9YXCgWqS6vY@lists.postgresql.org X-Gm-Message-State: AOJu0YzULIRH4fVggsxowDm5u6sxfGBIKPrSCsjfovjdsXFmXRo2+iSh jXH/gHtefhk+xYtKeWBnkorZpjlmis+uhQPBdKQjPME3WR8jArigoLHXO5Hu0d48sqbPezdJjh8 W9cgbrcnJYr4iGHrXcWw9KvlM5WohmWM= X-Gm-Gg: Acq92OGtj1UkX97SIsjwLaRoG2o7bGJI86+IpMw2xqp+/qV4AKYjYTlOXMEywOngVAp 8iuiDkE/lgDdoDjn+n65QASyatDl0875JleftE+BKbQ3XCmG0v40kJaz7HNoFrZFup77ypN/9xT 4xOmGQIsP2P6lz47iKRaluh4KzD7b1nG4NCI54LnylkW8jiWwGUh5bA16Q++qyEGFFuxlEuz74Q Uz1muh6mDG4MuBGC9mQ3nrKAsY0hSitGAlUDvqc2eMMw11llcSZg7xZGZtgjSSm6q/7PBxFP7SK za+5Hnf/a6ev9nCppedwm/4h1H0pImIPlg5PsAFIOlAeTGakulm0MnxAck9ZHR5WV02buwDfLq5 OemuqZFw= X-Received: by 2002:a4a:ec4c:0:b0:69d:6bbf:3fd0 with SMTP id 006d021491bc7-69d7ec7f7d3mr6752554eaf.49.1779699632645; Mon, 25 May 2026 02:00:32 -0700 (PDT) MIME-Version: 1.0 References: <63f6abc9-c0ae-465d-a4e6-667eca6ea008@gmail.com> In-Reply-To: From: Alexander Korotkov Date: Mon, 25 May 2026 12:00:20 +0300 X-Gm-Features: AVHnY4LUdZFpuyiy1-F8_hpvJhLdvkde0J-mSTlwcOJuxq9tQTfy85G4Bas1Fu8 Message-ID: Subject: Re: Implement waiting for wal lsn replay: reloaded To: Xuneng Zhou Cc: Alexander Lakhin , Heikki Linnakangas , Peter Eisentraut , Andres Freund , Thomas Munro , =?UTF-8?Q?=C3=81lvaro_Herrera?= , Chao Li , pgsql-hackers , Michael Paquier , jian he , Tomas Vondra , Yura Sokolov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, May 23, 2026 at 9:40=E2=80=AFPM Xuneng Zhou = wrote: >> > I agree with you. But do we actually need a >> > wait_for_standby_and_slot_catchup() wrapper. I think we can call >> > $node->wait_for_slot_catchup() directly and simplify the fix. Check >> > the attached patch. >> > >> >> The patch looks good to me. I agree that the wait_for_slot_catchup is >> not needed and could be misleading. This change would make the exact >> synchronization point and its intention clearer. The only price we >> need to pay here is bringing back the polling. But it seems acceptable >> since the cost was there in the pre-wait-for-lsn era. And thanks for >> writing the great commit message! > > > Sorry for copy-pasting the wrong function name. It should be wait_for_cat= chup(). Good, thank you. I'll push it if no objections. ------ Regards, Alexander Korotkov Supabase