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 1rmJqW-007DKo-Cj for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Mar 2024 20:44:36 +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 1rmJqU-005rFr-UL for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Mar 2024 20:44:35 +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 1rmJnF-005knw-9O for pgsql-hackers@lists.postgresql.org; Mon, 18 Mar 2024 20:41:14 +0000 Received: from fout8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmJnB-005FJ6-6j for pgsql-hackers@lists.postgresql.org; Mon, 18 Mar 2024 20:41:13 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 94DED13800D4; Mon, 18 Mar 2024 16:41:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 18 Mar 2024 16:41:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1710794466; x= 1710880866; bh=JGsnXAvEjBr9yxmCHw3BrulX6eFWanVv2SmDyiufwtM=; b=T asyAhlnB2g43vELV08wuub+vH4WmqDfx2nNf4Tnh5ku9sOAd7JJ1vmR1Gl5rs0tN RxnaJYvWLjmdd0IFLHWhUQzM+6MwOGJ24jJMeSysEB5Y1f6XnFiv9U1FscP78JwG 84tUGS4FUeSxNjORx/w6TM5oGkdozRHoEws46FvMoZR067WgsUdlCQsxhgbDCDba Cp0bMMwH7qaZZAGR0tBcRpE3341mJykQbdV5ugphKQc+iPrVf7qepmyGCBlvfthD 3ezcJNCMXFbpHItlsr7HwNqGHVRHztwVRKoRnvcfLB6KHssAr3T4JbN0MGto20v9 NDYFynS2SELXqSFtWQcxg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrkeejgddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Mar 2024 16:41:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1710770963; bh=FfYbpEzeDgHiK3KmJ0n/8C6bH9BEgDIsbCgTO7ca9bQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Z8sVJpdPTZMh5GuhiuX3uGQ6Oj2tJDua0hgK8h2hn3Uqpxwmnn7G/3aN0/OPrY5f1 3qUcZN1SFm5ZxBv4grHUurHhZzu/DyKvKgEhVw5iR9knRJSQJQxYo2aeUHbv0tYBqN 30PKkO+/+tj9uE441f+CckfeS/iB4UTXjwAxWKv+/QdOyRTMAhf2T8oSlUYDtmk8e0 9iT/yUG8yS+9vVojt7QERx+ktG2vgffWyHpTLE3/RxKBKxJqdJi4p7eMU0xLL1IVc5 og6Erhc7zWHu8HMaM2J9xi88+RQxQajBP6S1JTKbDe06+sl1mRF7kUheDs/mnVV0Y1 gvVgTjUi7vo3g== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id AADCBD84; Mon, 18 Mar 2024 15:09:23 +0100 (CET) Date: Mon, 18 Mar 2024 15:09:23 +0100 From: Alvaro Herrera To: Peter Eisentraut Cc: Euler Taveira , Amit Kapila , Shlok Kyal , "kuroda.hayato@fujitsu.com" , Tomas Vondra , "pgsql-hackers@lists.postgresql.org" , Michael Paquier , Andres Freund , Ashutosh Bapat , =?utf-8?B?RmFicsOtemlv?= de Royes Mello , vignesh C Subject: Re: speed up a logical replica setup Message-ID: <202403181409.y2imrqpbayjg@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7a970912-0b77-4942-84f7-2c9ca0bc05a5@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Mar-18, Peter Eisentraut wrote: > * src/bin/pg_basebackup/pg_createsubscriber.c > > I think the connection string handling is not robust against funny > characters, like spaces, in database names etc. Maybe it would be easier to deal with this by passing around a struct with keyword/value pairs that can be given to PQconnectdbParams (and keeping dbname as a param that's passed separately, so that it can be added when one is needed), instead of messing with the string conninfos; then you don't have to worry about quoting. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "If you have nothing to say, maybe you need just the right tool to help you not say it." (New York Times, about Microsoft PowerPoint)