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 1oB1sz-0007IC-6k for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 22:28:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oB1sw-0000bX-Cl for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 22:28:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oB1sw-0000bO-3D for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 22:28:10 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oB1sp-0002Ej-Ms for pgsql-hackers@postgresql.org; Mon, 11 Jul 2022 22:28:09 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id BF97E320082A; Mon, 11 Jul 2022 18:28:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 11 Jul 2022 18:28:01 -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=fm3; t=1657578480; x=1657664880; bh=eZBZrvkaWV RlQ26V6QdqLsBX8AZl4inMTh7Eq2cNA8I=; b=fYjy3GcOkbOafPP1Y2mJn+qrU8 CgPc4SvE2Cmr7BBsJuGYY3VFIJB7MY+7KZQC1V87fTcBgefZGzNnmzkkfmwm6U3C VJvmSWikmDzG8Mei8r2b0sh8bBmjKl9LcxCxZ/XXGWJk+mJ5DkZMbONybnqeiGzb Ehx9ZxFmed4GD2Oj6SKIHUncg18/Kgt0A+fAlsXYR0MWTcmbFZZMYSjjOhPhV7vT 7Jw7U/dbRXFvPxL5qkjlgBQ94BnFgrMg1/xanmPU886xs9ULg5lSLQbmcAwiagdX GDOF4qtwf6Q/dZcfzUE6mZyyWSd8ICI+P0MhaHTWm2zT3w8E3+zWr4rooMJw== 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= fm3; t=1657578480; x=1657664880; bh=eZBZrvkaWVRlQ26V6QdqLsBX8AZl 4inMTh7Eq2cNA8I=; b=HdWrDbgAKUk1fzUhY/68BE/CBpikX1LHlNZqXpieN5Xd al8CLnVbmDneGTfFZ2EqP5jZs8gGESbn2bkLf4D/j9Yteac84ZBwQ8iOIllGwcTa ajYOmAwvBeAoaUhlk0l1na6ldVr8auQSJNyMoM42PtsznftPzin8xCrZSHoCIorR Iu3wt2dgyv+tamq753Fhib9/UkJ+E07gUik+Q3FoDuOuP2agEEcXMwXT/+2MrmHE MZdy2flj5EbaeS7yAqgGsiKgc2/R+Mfy8rTgf4suKXDWLqh7W5pjvOuMy7my2hix e72RKVQPRZ6bCpYc7VTe5jUFLH+VHNy7zLec5wgr5w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejgedguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Jul 2022 18:27:59 -0400 (EDT) Date: Mon, 11 Jul 2022 15:27:58 -0700 From: Andres Freund To: Tom Lane Cc: Robert Haas , Peter Eisentraut , David Rowley , pgsql-hackers Subject: Re: automatically generating node support functions Message-ID: <20220711222758.3bdgprqvvjwndn7k@awork3.anarazel.de> References: <815831.1657494597@sss.pgh.pa.us> <45f508cb-e30b-c252-e081-4548deafa34c@enterprisedb.com> <1116889.1657553859@sss.pgh.pa.us> <1201553.1657562258@sss.pgh.pa.us> <1229446.1657569262@sss.pgh.pa.us> <20220711201755.x5hmdailt63z2xo2@awork3.anarazel.de> <1239476.1657571885@sss.pgh.pa.us> <20220711213755.gwcysmuypke3wckg@awork3.anarazel.de> <1261926.1657577355@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1261926.1657577355@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-07-11 18:09:15 -0400, Tom Lane wrote: > Andres Freund writes: > > I don't think it's worth worrying about this not working reliably for non > > --enable-depend builds, there's a lot more broken than this. > > Well, *I* care about that, and I won't stand for making the > non-enable-depend case significantly more broken than it is now. > > In particular, what you're proposing would mean that "make clean" > followed by rebuild wouldn't be sufficient to update everything > anymore; you'd have to resort to maintainer-clean or "git clean -dfx" > after touching any node definition file, else gen_node_support.pl > would not get re-run. Up with that I will not put. I'm not sure it'd have to mean that, but we could just implement the dependency stuff independent of the existing autodepend logic. Something like: # ensure that dependencies of -include gen_node_support.pl.deps node-support-stamp: gen_node_support.pl $(PERL) --deps $^.deps $^ I guess we'd have to distribute gen_node_support.pl.deps to make this work in tarball builds - which is probably fine? Not really different than including stamp files. I'm not entirely sure how well either the existing or the sketch above works when doing a VPATH build using tarball sources, and updating the files. Greetings, Andres Freund