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 1sRVO4-00Fti5-FQ for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jul 2024 11:21:28 +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 1sRVO2-003taW-ST for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jul 2024 11:21:26 +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 1sRVO1-003tZz-9j for pgsql-hackers@lists.postgresql.org; Wed, 10 Jul 2024 11:21:26 +0000 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.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 1sRVNx-001MN2-UK for pgsql-hackers@lists.postgresql.org; Wed, 10 Jul 2024 11:21:24 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 9E5F51140C70; Wed, 10 Jul 2024 07:21:20 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute2.internal (MEProxy); Wed, 10 Jul 2024 07:21:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1720610480; x=1720696880; bh=uy+qL1zCac Q2n+7sc7oVPm2CtuTyHkhFxcnZIgYaZhk=; b=r82doMkIKA71aXACJgyDvh/PdM E0mCBhIFQDu1p4vhG+jdKE7pCEbcvXVvQdqgHU5fjWYf03A909Nhuy/8Qd9TaK/q nAe0Jod9e99+tdYXq8RglogMLClk7kzAie94aBnWX17HRY2N7/WxzUgvbzhdbBxZ lz8qK+wZBm5XxulPvoUXRkM3l73NRRWniLvvBEj5Zhe70r1glegS2DguYbTMVHDl rDi+fMkwGYECmKV63MP7Yw+LZpFazfH7eAdanJferyfbk49yQ84GT1ufYe2xe3Cn 47vZAlz5HRiLY4LNFVX5F15lnjXR/7mPmg6VWKQb7a5SNEI7El6PF71Mtiew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1720610480; x=1720696880; bh=uy+qL1zCacQ2n+7sc7oVPm2CtuTy HkhFxcnZIgYaZhk=; b=VBaabcrzBwBM0pyHUyybt1Jj5P+hz2QcDHyOjvc7KXj/ HtEqoEEYe2bbTvC7x01IibZ7sJCu3/KGVd9FchqGHTSjMJ/dDr9IXgXngbufbp9t u8EetlVKg2NdPSPOKhuVJZ58y87eGdZLE2SJpgeHMS9blXMWw2W9dyzUHr/pI5Y9 byZMPa+mVztWIgBWUD4prnWZ+dSpWnppJb0yXKepJmQSeIAYb/py4YJWBi+1BDSm so9QKXb+FHnySZPqCGkW7d+e4ar3bR9O1AGbv2ojSrQkX/IN9EYhL//ZazNlfUHP /zjdnJmpAHVTioi+0irCfJlShkhixZZtSVD/n0JtAA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrfedugdeflecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesmhdtreerreertdenucfhrhhomhepfdfguhhl vghrucfvrghvvghirhgrfdcuoegvuhhlvghrsegvuhhlvghrthhordgtohhmqeenucggtf frrghtthgvrhhnpeeuhfejfedufeefuefgheetledvgeekkeeuueduvefgudfhlefghfel ueehtdeihfenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvghulhgvrhesvghu lhgvrhhtohdrtghomh X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5F3C815A0092; Wed, 10 Jul 2024 07:21:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb MIME-Version: 1.0 Message-Id: In-Reply-To: References: <9a9c7e65-c47b-4400-a63e-ac6169c0860e@app.fastmail.com> <2e86cf53-c806-49d2-9a10-1a1257776d1f@app.fastmail.com> <5da4b286-e570-4341-8262-92d763f6b1a4@app.fastmail.com> <776c5cac-5ef5-4001-b1bc-5b698bc0c62a@app.fastmail.com> <3c024250-3f13-4f4d-b8e9-55f176db4abf@eisentraut.org> <0dffca12-bf17-4a7a-334d-225569de5e6e@gmail.com> Date: Wed, 10 Jul 2024 08:20:50 -0300 From: "Euler Taveira" To: "Alexander Lakhin" , "Amit Kapila" , "kuroda.hayato@fujitsu.com" Cc: "pgsql-hackers@lists.postgresql.org" Subject: Re: speed up a logical replica setup Content-Type: multipart/mixed; boundary=b988ecfca8d64708898a8490fc51b671 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --b988ecfca8d64708898a8490fc51b671 Content-Type: multipart/alternative; boundary=9b12ef09bc2b473a826cdf56bcda3899 --9b12ef09bc2b473a826cdf56bcda3899 Content-Type: text/plain On Tue, Jul 9, 2024, at 8:00 AM, Alexander Lakhin wrote: > Hello Amit and Kuroda-san, > > 03.07.2024 14:02, Amit Kapila wrote: > > Pushed 0002 and 0003. Let's wait for a discussion on 0001. > > Please look at another failure of the test [1]: > [13:28:05.647](2.460s) not ok 26 - failover slot is synced > [13:28:05.648](0.001s) # Failed test 'failover slot is synced' > # at /home/bf/bf-build/skink-master/HEAD/pgsql/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl line 307. > [13:28:05.648](0.000s) # got: '' > # expected: 'failover_slot' I'm wondering if the attached patch is sufficient to move the restart_lsn forward. I experimented several lightweight ideas but none works. BTW the steps to create the failover slot here is similar 040_standby_failover_slots_sync.pl. I don't have a clue why it is failing for this one. -- Euler Taveira EDB https://www.enterprisedb.com/ --9b12ef09bc2b473a826cdf56bcda3899 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Tue, Jul 9, = 2024, at 8:00 AM, Alexander Lakhin wrote:
Hello Amit and Kuroda-san,
=
03.07.2024 14:02, Amit Kapila wrote:
> P= ushed 0002 and 0003. Let's wait for a discussion on 0001.
=
Please look at another failure of the test [1]:
=
[13:28:05.647](2.460s) not ok 26 - failover slot is synced
[13:28:05.648](0.001s) #   Failed test 'failover slot is= synced'
#   at /home/bf/bf-build/skink-master/H= EAD/pgsql/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl line 307.
[13:28:05.648](0.000s) #      = ;    got: ''
#     expe= cted: 'failover_slot'

I'm wond= ering if the attached patch is sufficient to move the restart_lsn
forward. I experimented several lightweight ideas but none works= . BTW the steps
to create the failover slot here is simila= r 040_standby_failover_slots_sync.pl.
I don't have a clue = why it is failing for this one.


<= div id=3D"sig112409080">
--
Euler Taveira

--9b12ef09bc2b473a826cdf56bcda3899-- --b988ecfca8d64708898a8490fc51b671 Content-Disposition: attachment; filename="fix.diff" Content-Type: text/x-patch; name="fix.diff" Content-Transfer-Encoding: BASE64 ZGlmZiAtLWdpdCBhL3NyYy9iaW4vcGdfYmFzZWJhY2t1cC90LzA0MF9wZ19jcmVhdGVzdWJz Y3JpYmVyLnBsIGIvc3JjL2Jpbi9wZ19iYXNl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