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 1rmY6B-008Y4T-SI for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Mar 2024 11:57:44 +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 1rmY6A-00Da6O-0t for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Mar 2024 11:57:42 +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 1rmY69-00Da66-O9 for pgsql-hackers@lists.postgresql.org; Tue, 19 Mar 2024 11:57:42 +0000 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmY67-005MGT-75 for pgsql-hackers@lists.postgresql.org; Tue, 19 Mar 2024 11:57:41 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id 545171380100; Tue, 19 Mar 2024 07:57:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 19 Mar 2024 07:57:38 -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=1710849458; x=1710935858; bh=4V48ztuSjyTW7iH3RDi4eFbbb+bmxKOU Sb9T3+yKZ9I=; b=RaMWhJR9mPSx7BhjJMS+DY5au1Ke0TPZqoSg2ylg/42AjOWt Zamn/mxI1h5bVM9k4bquv09Br3RohUT+IM9TwmCxqcHAXdGyyandCQAmeOlAejRE zZmXp5yGwoygDToUZfu/rawBy8Z2UAkx9R8cm1I/GIn+CeD7ixGGN4WoXPLEHkQM cX414NtDQ7yEdWJBt3Aw1ZEc8K+EVPDCcP1rVtytuanO4zZmEXBXi8SdyMLeBBzS bYUUNgcxZC/4Hnc+uApVoiMVTfF6dSd0Eiu6CzhUgRO3n+yALqVde/zuvfSvJRDa xVe5Q17x5d2MUGR0rIQdb0g7BtriQ5lV/jEkEw== 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=1710849458; x= 1710935858; bh=4V48ztuSjyTW7iH3RDi4eFbbb+bmxKOUSb9T3+yKZ9I=; b=N iwQficlbvSJbhQIA4/BxJBvwUGWoNU2zfz/vy+zku3q+gcVtXFgttv3bKMlv5Bgb 7KW0QKyKCSRgvy3ItRrWhLuHYIHpuMBgCsHvUxbvYRqhKaAUgfZS/cR+sBfPk8h9 pugrXMGq8hhuwdG3C38EcOkQVwKdOhSAqIDJYNP/wy2l0qQXx3W9u/TZNuHxET1m Oy3FIYL5PMhSJEvb8yowhEQJ1+nIw76kUHJqLXWOaoNW33vtSwER11aGgLwtBJ+U ohPRVH3ljNscxbDDaXdmXWcY/X7kUJsGCOUmDiQvdcLI2NRz9Imy7DcMRoTCRIWf 8oaf5MmgwI7DRvTKB8wwA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrledtgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqe enucggtffrrghtthgvrhhnpeeljedtudfggffffefhieetfeehtedukeejuedtlefhgefg ffdujeehueefudffkeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhes vghishgvnhhtrhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Mar 2024 07:57:36 -0400 (EDT) Message-ID: <2abb05b6-9173-45a7-a5dc-0f4cf2a4c7f4@eisentraut.org> Date: Tue, 19 Mar 2024 12:57:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: speed up a logical replica setup Content-Language: en-US To: Shlok Kyal , Euler Taveira Cc: Amit Kapila , "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> From: Peter Eisentraut In-Reply-To: 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 19.03.24 12:26, Shlok Kyal wrote: >> I'm attaching a new version (v30) that adds: >> >> * 3 new options (--publication, --subscription, --replication-slot) to assign >> names to the objects. The --database option used to ignore duplicate names, >> however, since these new options rely on the number of database options to >> match the number of object name options, it is forbidden from now on. The >> duplication is also forbidden for the object names to avoid errors earlier. >> * rewrite the paragraph related to unusuable target server after >> pg_createsubscriber fails. >> * Vignesh reported an issue [1] related to reaching the recovery stop point >> before the consistent state is reached. I proposed a simple patch that fixes >> the issue. >> >> [1] https://www.postgresql.org/message-id/CALDaNm3VMOi0GugGvhk3motghaFRKSWMCSE2t3YX1e%2BMttToxg%40mail.gmail.com >> > > I have added a top-up patch v30-0003. The issue in [1] still exists in > the v30 patch. I was not able to come up with an approach to handle it > in the code, so I have added it to the documentation in the warning > section. Thoughts? Seems acceptable to me. pg_createsubscriber will probably always have some restrictions and unsupported edge cases like that. We can't support everything, so documenting is ok.