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 1rVBgb-00FO7Y-07 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Jan 2024 14:35:34 +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 1rVBgY-00EW3P-MN for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Jan 2024 14:35:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVBgX-00EW37-3C for pgsql-hackers@lists.postgresql.org; Wed, 31 Jan 2024 14:35:30 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVBgS-004j4s-Sb for pgsql-hackers@lists.postgresql.org; Wed, 31 Jan 2024 14:35:28 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id AD46B3200AE0; Wed, 31 Jan 2024 09:35:19 -0500 (EST) Received: from imap49 ([10.202.2.99]) by compute2.internal (MEProxy); Wed, 31 Jan 2024 09:35:20 -0500 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=fm1; t=1706711719; x=1706798119; bh=LIZJ3qav1W zop2gwyNOf8pFInaiJtavKc2xHSEgWLK0=; b=nS0wlAmq30Y3DnL0Tet2YR2pS0 AhLIUNnJrVeQA4eKsiW+j6v/ne6MDpKOED++55EHzI9792CBXpHhBSf29lKgLoim 943v/zH8Mxcws9fXV6g6DPH0xZzoEigfyMhMKemrb+SWhw2hUILR8j/rq74Maxy0 8Z1VROXw3hYBHMtgBgeULHaEcIKHpXvLWWkgCSN9tKpjx1qhSm3VE6Y40OwnST2C a5626wkTteE+DAChX4ZVpojOeEX4f+qE+HU3ZtchoJKgtYoWH/GAZAh0qLJwzzc+ alWf1cVvN7MpM0P5n8DsocoHAOtIRVzwt/noZwrPfnRPylDxY9nEyX0jtJYA== 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= fm3; t=1706711719; x=1706798119; bh=LIZJ3qav1Wzop2gwyNOf8pFInaiJ tavKc2xHSEgWLK0=; b=idrjNUqfBmOzZKS3UjChOp8aJcMY9plTkCXkbFZZMoN1 7xSUp1wu35+ual7f9jb07ERuEjcR3msNotEdTEypdPzc3W3bM00YRqMXZ87MsNwu /ivD0VjvdlaULHgTZKmgSg0Wy4yDQtddiibVB9BpHPEHfLNpTG6EF1pEp4xAO/jv 49PTZdzv6wGqqZgqaUSi7UXvw7VEf1a4KO0Sbpr+v4WgkwS0QoIa6HDwzT7Dk3fv kY68K/6A27VtOJgeZ7EqMByuRF9QyLCYtisKkD5ziXWAilYwuFCqBVkalyhv6amd E+RZsP5H8FGIktDeg9/+UWzry2MPqosA46658LTsKw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedtledgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsegrtderreerreejnecuhfhrohhmpedfgfhu lhgvrhcuvfgrvhgvihhrrgdfuceovghulhgvrhesvghulhgvrhhtohdrtghomheqnecugg ftrfgrthhtvghrnhepgeeugeelheefheegvefggffhgffgteeuudevvdekhedvvdekgfeh keeitedvgedvnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvuhhlvghrsegv uhhlvghrthhordgtohhm X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A7CAD15A0092; Wed, 31 Jan 2024 09:35:18 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 MIME-Version: 1.0 Message-Id: <9b2256ea-484d-404d-a3cf-b8e86674951e@app.fastmail.com> In-Reply-To: References: <5ac50071-f2ed-4ace-a8fd-b892cffd33eb@www.fastmail.com> <4710d895-689a-4ae6-b8e3-344286dbf970@app.fastmail.com> <96e3b739-d63d-4d35-90a3-7869465b7167@eisentraut.org> <2736443c-58e3-42df-8cc4-8c66106e3da5@app.fastmail.com> <1cd45c1e-8ed1-42fc-9357-f1c43e0d6ac8@app.fastmail.com> Date: Wed, 31 Jan 2024 11:34:57 -0300 From: "Euler Taveira" To: =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= , "kuroda.hayato@fujitsu.com" Cc: "pgsql-hackers@lists.postgresql.org" , "vignesh C" , "Michael Paquier" , "Peter Eisentraut" , "Andres Freund" , "Ashutosh Bapat" , "Amit Kapila" , "Shlok Kyal" Subject: Re: speed up a logical replica setup Content-Type: multipart/alternative; boundary=4064db19368649cb84e91211a818cf2a List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --4064db19368649cb84e91211a818cf2a Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2024, at 11:25 AM, Fabr=C3=ADzio de Royes Mello wrote: > Jumping into this a bit late here... I'm trying a simple pg_createsubs= criber but getting an error: Try v11. It seems v12-0002 is not correct. > Seems we need to escape connection params similar we do in dblink [1] I think it is a consequence of v12-0003. I didn't review v12 yet but alt= hough I have added a comment saying it might be possible to use primary_conninfo= , I'm not 100% convinced that's the right direction. /* * TODO use primary_conninfo (if available) from subscriber and * extract publisher connection string. Assume that there are * identical entries for physical and logical replication. If th= ere is * not, we would fail anyway. */ -- Euler Taveira EDB https://www.enterprisedb.com/ --4064db19368649cb84e91211a818cf2a Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Wed, Jan 31,= 2024, at 11:25 AM, Fabr=C3=ADzio de Royes Mello wrote:
Jumping into this a bit late here... I'm= trying a simple pg_createsubscriber but getting an error:

Try v11. It seems v12-0002 is = not correct.

Seems we need to escape connection params similar we do in dblink [1= ]

I think it is a= consequence of v12-0003. I didn't review v12 yet but although I
have added a comment saying it might be possible to use primary_c= onninfo, I'm
not 100% convinced that's the right direction= .

       = ; /*
         * TO= DO use primary_conninfo (if available) from subscriber and
         * extract publisher co= nnection string. Assume that there are
   &= nbsp;     * identical entries for physical and logic= al replication. If there is
     =     * not, we would fail anyway.
 &nbs= p;       */

<= br>
--
<= div class=3D"signature">Euler Taveira

--4064db19368649cb84e91211a818cf2a--