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 1rnAWa-00Bv87-W9 for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Mar 2024 04:59:33 +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 1rnAWZ-00AAlJ-1J for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Mar 2024 04:59:31 +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 1rnAWY-00AAkM-K5 for pgsql-hackers@lists.postgresql.org; Thu, 21 Mar 2024 04:59:31 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnAWV-005bml-Ap for pgsql-hackers@lists.postgresql.org; Thu, 21 Mar 2024 04:59:29 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 781AE5C0041; Thu, 21 Mar 2024 00:59:27 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute2.internal (MEProxy); Thu, 21 Mar 2024 00:59:27 -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=1710997167; x=1711083567; bh=rTIThVFqU7 amzIezD5GaBdoIPz56FIH+KO3kbx7PoC4=; b=Xb2kCnXozqBlEaRVt8qd4W5GED eDA3egzAtve840WLs+y0Sn8NdJ2ltN4RQrOBsHVrJMDiDL0/k9G0xkKl0DNMp9Dx yrLwlDjPFzEJf/odBI2Mjs5NqTu8l58lSdiBRylw0u1mImo+gqmglEvYqxUuGEUM m9DHh2LuO9obAmb1avJTw9fnGXe9DyF6EchqAUr7SxsG3FWGPqJGl8J055/uGoVb aFJT20SRwkh9q6GEJjhX2M2No9bJYE/urGcAV7ZI9wEEp3mGj/cqf5xnhiqV+LE7 kK1KwKjRvKiTuN68m1jJL52Hcj6MndINpwlM8KUh2TS2UWk6iiAbxOe+FTEw== 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=1710997167; x=1711083567; bh=rTIThVFqU7amzIezD5GaBdoIPz56 FIH+KO3kbx7PoC4=; b=N3rS/oohy979EJChR9h/b4VlVmUqyp62eRIdGBS3jWoZ 6/GyyM76cTY8mXhirlHUn0orsmcc4JFdrAC1xSuASe/v8JZaNupPTQdvMEw8YU7F /SsUC5OXwQbMLx9rIdHcCF0Qiltvi5s1ayrHU4Ex8bhoIwsRzPqS8RbzZIWU8TkU m69wFQswGBe1KZWSpkisjbS+8qlBFjvcpAOPXQ3Ol6s7ft3TWNy+jnlVxQzp3H0S /+Ed25L0rRvOtaSJJFNNKbQ1wFmH3h27jC+hao/qCQaPKX0VEROvR0keZCadbG2s oUxiI98WcsRCOmmA01jzZyp/ATIDsrjrZjcs7djXSw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrleehgdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesrgdtreerreerjeenucfhrhhomhepfdfguhhl vghrucfvrghvvghirhgrfdcuoegvuhhlvghrsegvuhhlvghrthhordgtohhmqeenucggtf frrghtthgvrhhnpeegueegleehfeehgeevgffghffggfetueduvedvkeehvddvkefgheek ieetvdegvdenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvghulhgvrhesvghu lhgvrhhtohdrtghomh X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0CB0815A0092; Thu, 21 Mar 2024 00:59:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-332-gdeb4194079-fm-20240319.002-gdeb41940 MIME-Version: 1.0 Message-Id: In-Reply-To: References: <9a9c7e65-c47b-4400-a63e-ac6169c0860e@app.fastmail.com> <40595e73-c7e1-463a-b8be-49792e870007@app.fastmail.com> <6423dfeb-a729-45d3-b71e-7bf1b3adb0c9@enterprisedb.com> <2f0b73f3-e7c0-4e95-9712-1993442a6b64@app.fastmail.com> <34637e7f-0330-420d-8f45-1d022962d2fe@app.fastmail.com> <96a45e74-bd83-422b-bad3-acb52d0ff5f4@eisentraut.org> Date: Thu, 21 Mar 2024 01:59:06 -0300 From: "Euler Taveira" To: "'Shubham Khanna'" , "vignesh C" Cc: "Peter Eisentraut" , "Amit Kapila" , "Shlok Kyal" , "kuroda.hayato@fujitsu.com" , "Tomas Vondra" , "pgsql-hackers@lists.postgresql.org" , "Michael Paquier" , "Andres Freund" , "Ashutosh Bapat" , =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= Subject: Re: speed up a logical replica setup Content-Type: multipart/alternative; boundary=e3b5c6bc53eb46c887822a2d0611cb89 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --e3b5c6bc53eb46c887822a2d0611cb89 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 20, 2024, at 7:16 AM, Shubham Khanna wrote: > On Tue, Mar 19, 2024 at 8:54=E2=80=AFPM vignesh C wrote: > > > > If you are not planning to have the checks for name length, this cou= ld > > alternatively be fixed by including database id also while querying > > pg_subscription like below in set_replication_progress function: > > appendPQExpBuffer(str, > > "SELECT oid FROM pg_catalog.pg_subscription \n" > > "WHERE subname =3D '%s' AND subdbid =3D (SELECT oid FROM > > pg_catalog.pg_database WHERE datname =3D '%s')", > > dbinfo->subname, > > dbinfo->dbname); >=20 > The attached patch has the changes to handle the same. I included a different query that does the same. See v32. -- Euler Taveira EDB https://www.enterprisedb.com/ --e3b5c6bc53eb46c887822a2d0611cb89 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Wed, Mar 20,= 2024, at 7:16 AM, Shubham Khanna wrote:
On Tue, Mar 19, 2024 at 8:54=E2=80=AFPM vi= gnesh C <vignesh21@gmail.com> wrote: