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 1roivh-0031EX-ED for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Mar 2024 11:55:54 +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 1roivg-002qhp-0d for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Mar 2024 11:55:52 +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 1roive-002qhd-RD for pgsql-hackers@lists.postgresql.org; Mon, 25 Mar 2024 11:55:52 +0000 Received: from wfout3-smtp.messagingengine.com ([64.147.123.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1roivb-006OQ7-RM for pgsql-hackers@lists.postgresql.org; Mon, 25 Mar 2024 11:55:50 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id A11FF1C000CC; Mon, 25 Mar 2024 07:55:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 25 Mar 2024 07:55:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding: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=1711367743; x=1711454143; bh=7SJcD7AEg29ouNOCXl64DdY4gA+tVfVt kUIfiU5ozGU=; b=ehnMMatg6uInHANF7DE9xz9Qqaf9EGa6f4gugfykPCztbF4B zwM6JOkqeXnW/cqYwwbHVT61JeXNGQJfFM0aFZgFzeEzawheMMpTUPvUm1zAIvfS CEcKKeJ5Iq/Acspj5/KczgWaTsRH1huUSNJrbVBneXaQWPMmRRjH6QoNIteQYquv RVUxepKDs9Kw4idB/OCWJc1US5GKTIauazdaaGRB60yeRDdn4AcVdvylJNu8Gtfg lr6BO0dR5k5ehkcCvUQBTpX5F1fbyOLMSr6TDylnCwxld/OFTZ7zj4r55V54WvZU mAbkSie+/stD2f4mf/jdQ4QwcGVVLEQmfLroyQ== 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 :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=1711367743; x= 1711454143; bh=7SJcD7AEg29ouNOCXl64DdY4gA+tVfVtkUIfiU5ozGU=; b=C u5/O1EOePvk83qIGSgeWbCr8ObbZwU30lJaNq4dldn8Pi5t2S67T9R3EdZWQbgbw r2ekkjue7aYdF23iFwoiqGH6/Yx383mzAV3cKsUm/hIub5jiOl4f2VArjnEvXST6 aAHbIWQS8Yvt6sc7bzm1ehd1olkOsCxttWzdwoSxXiuO/OhSKMZICBzKKFQL59Ec RCET0NCi2Zt/N3i2gt9G+Q2QTrZQBQW75ERMOYcJcQ396vjt4JKsiYs5pLcx2MC8 I0/LR8h0DC7a14sx5acqygffZtUnswhjvOYny1eOuk2yttThPywsCCycGyYsyo44 YnI6xIHiKyhMvxqHts2zw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddutddguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh eqnecuggftrfgrthhtvghrnhepgfejtdfhkeeftdeugfeileehteeljeeghfeuledthfeu tedvffdukeefjefhgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Mar 2024 07:55:41 -0400 (EDT) Message-ID: <3fa9ef0f-b277-4c13-850a-8ccc04de1406@eisentraut.org> Date: Mon, 25 Mar 2024 12:55:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: speed up a logical replica setup To: Euler Taveira Cc: 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?= , vignesh C 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> <7a970912-0b77-4942-84f7-2c9ca0bc05a5@eisentraut.org> <44de4e04-db22-40ed-8ba9-46387dc8bf83@app.fastmail.com> Content-Language: en-US From: Peter Eisentraut In-Reply-To: <44de4e04-db22-40ed-8ba9-46387dc8bf83@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 22.03.24 04:31, Euler Taveira wrote: > On Thu, Mar 21, 2024, at 6:49 AM, Shlok Kyal wrote: >> There is a compilation error while building postgres with the patch >> due to a recent commit. I have attached a top-up patch v32-0003 to >> resolve this compilation error. >> I have not updated the version of the patch as I have not made any >> change in v32-0001 and v32-0002 patch. > > I'm attaching a new version (v33) to incorporate this fix (v32-0003) > into the > main patch (v32-0001). This version also includes 2 new tests: > > - refuse to run if the standby server is running > - refuse to run if the standby was promoted e.g. it is not in recovery > > The first one exercises a recent change (standby should be stopped) and the > second one covers an important requirement. I have committed your version v33. I did another pass over the identifier and literal quoting. I added quoting for replication slot names, for example, even though they can only contain a restricted set of characters, but it felt better to be defensive there. I'm happy to entertain follow-up patches on some of the details like option naming that were still being discussed. I just wanted to get the main functionality in in good time. We can fine-tune the rest over the next few weeks. > Based on the discussion [1] about the check functions, Vignesh suggested > that it > should check both server before exiting. v33-0003 implements it. I don't > have a > strong preference; feel free to apply it. I haven't done anything about this.