Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQdGW-0001qy-Lt for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Aug 2022 23:25:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oQdGR-00019b-RP for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Aug 2022 23:24:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQdGQ-00019L-7l for pgsql-hackers@lists.postgresql.org; Tue, 23 Aug 2022 23:24:55 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQdGM-0002F1-LH for pgsql-hackers@postgresql.org; Tue, 23 Aug 2022 23:24:52 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B2802320090B; Tue, 23 Aug 2022 19:24:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 23 Aug 2022 19:24:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1661297087; x=1661383487; bh=sHfjSQAfn4 KTqYA/Y8l2B7GnqOkL8OFGytBZjEVoros=; b=TWRK2FU40v/De7u1+gTS62wAPF JVhJLQR+RNNNxiTaBU8ULq63OPZcg2lEF778qov3Q0MXrnDWXkWlkH1vSIXLmNtv RRk2tyLegp25MHSTaPl4J7ikXQsfkPacgb037uB7LtOrsKOE7vL0OJK3tFPsvoUo eOmaGBKF54to37EZEJ3FYJC9Owl+8x8sl0Gsqa6nxP+3pKlFbCw99dm2W7ULsbcJ RXAgOMIDvOStDjitcY2tk07iqulW4nyOL0wJeigShnY3G02WXqdyLi8G4CU+iKDZ WYaKIQ3/JmrFhnHGaSbt+0Pg6MSmd9tV7MUMkw9OpZiQmCuIVzSuK8b46XZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1661297087; x=1661383487; bh=sHfjSQAfn4KTqYA/Y8l2B7GnqOkL 8OFGytBZjEVoros=; b=rsDEoKDFCev1aNyVL1hibEF0LP1OWk5kNW+x+rUyjkiu Zy18dUd97uqUDFQyTmagdclxfg5G0lTasKGTOdKS8tKSttrnztYcu5mKTSGKKQsm qODyvJxvaJO8R2jcAqqiTBKJM98GPVGg91GGZ7fJM2cmo0jN5HbkoL65TEKhch9r CCTXuk9kwW6HYUGUufsijsLMmUTBMn2U+RA0sIPbC2OpQhHw6J6bEpADEMoQxcQ9 jtKFqXqsHnY4dWcddR5Q5wORA/1X8ExBNg011xq5OZLCim4yEQxeUzkORjBB0/A4 GwhV08JjGzzYnkKYCrZhx29584cqKjmGvn3bbhhgnQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejtddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Aug 2022 19:24:46 -0400 (EDT) Date: Tue, 23 Aug 2022 16:24:45 -0700 From: Andres Freund To: Robert Haas Cc: Peter Eisentraut , Tom Lane , Noah Misch , "pgsql-hackers@postgresql.org" , samay sharma , Nazir Bilal Yavuz Subject: Re: Inconsistencies around defining FRONTEND Message-ID: <20220823232445.jpp56meso7fgrpns@awork3.anarazel.de> References: <20220820194550.725755r6fj2ro3rx@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-08-23 17:24:30 -0400, Robert Haas wrote: > On Sat, Aug 20, 2022 at 3:46 PM Andres Freund wrote: > > Unfortunately, the remaining uses of FRONTEND are required. That's: > > - pg_controldata, via #define > > - pg_resetwal, via #define > > - pg_rewind, via -DFRONTEND, due to xlogreader.c > > - pg_waldump, via #define and -DFRONTEND, due to xlogreader.c, xlogstats.c, rmgrdesc/*desc.c > > Actually, I think we could fix these pretty easily too. I just meant that they're not already obsolete ;) > See attached. Just to make sure I understand - you're just trying to get rid of the #define frontends, not the -DFRONTENDs passed in from the Makefile? Because afaics we still need those, correct? Greetings, Andres Freund