Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7bXp-0007HU-34 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Feb 2020 09:02:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7bXm-0000Rh-Et for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Feb 2020 09:02:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7bXl-0000Ra-DE for pgsql-hackers@lists.postgresql.org; Fri, 28 Feb 2020 09:02:50 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j7bXh-0005ls-CO for pgsql-hackers@postgresql.org; Fri, 28 Feb 2020 09:02:48 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DD1592226D; Fri, 28 Feb 2020 04:02:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 28 Feb 2020 04:02:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=ANpGnbG+AdnFgGD2cEFjG1Qz+ZcYQJ85RjZTzFi71 Ik=; b=XI+JWGCkE6G/MjkDmjDVGWkRLV9prtQucKQA9f6ufnopM4OA6/OksBwN4 VMZZBxlfRINdYgH8m/xnooiLcQVcD8SXPH37DqzYGhbgJ2gmXmkg27k2ct13ovP/ 1WkJJQVm0CGMSNB1p/y7B/krfV/gA8xS6BXrgnNhSaXKQKkKGwM1M7NgI363h/TD eENmPwg30V5Yp9Y1wT1EtaE4/VjoAKcnVzSfr1VBtNzrLy3x2LKEcuCTLg8hpRPr QxZfUthHx38mmc6zEvd+HKzvje4qnkfA31aqLWnxC3FvhdiqK6je62og+zh8GVjD m+ZpLRyBVaeb03ccSZdPhF7ER64Og== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleejgdduvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffhvfhfohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrudelgedrudelieenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df2c2c4.dip0.t-ipconnect.de [93.242.194.196]) by mail.messagingengine.com (Postfix) with ESMTPA id 8625D3060D1A; Fri, 28 Feb 2020 04:02:41 -0500 (EST) Subject: Re: base backup client as auxiliary backend process From: Peter Eisentraut To: pgsql-hackers References: <20191107041630.GK1768@paquier.xyz> <4792e456-d75f-8e6a-2d47-34b8f78c266f@2ndquadrant.com> <116725031573825947@iva1-ef4837f8671e.qloud-c.yandex.net> <8d8c851a-c951-f98e-22c2-f62621c32d3b@2ndquadrant.com> <4c79f835-b443-7b02-9097-aa1a40f46be9@2ndquadrant.com> <7925a361-d48c-db03-30b4-fcd331ef7f02@2ndquadrant.com> <5686daaa-e39f-3814-7ece-e96462f20616@2ndquadrant.com> <20200203124731.ykmyps26ohan4fsx@alap3.anarazel.de> Cc: Andres Freund , Masahiko Sawada , Sergei Kornilov , Michael Paquier Organization: 2ndQuadrant Message-ID: Date: Fri, 28 Feb 2020 10:02:40 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I have set this patch to "returned with feedback" in the upcoming commit fest, because I will not be able to finish it. Unsurprisingly, the sequencing of startup actions in postmaster.c is extremely tricky and needs more thinking. All the rest worked pretty well, I thought. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services