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 1oAw32-0008WL-MH for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 16:14:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAw31-00061s-Jj for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 16:14:11 +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 1oAw31-00061i-B2 for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 16:14:11 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAw2z-0007TV-7q for pgsql-hackers@postgresql.org; Mon, 11 Jul 2022 16:14:10 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9C2623200923; Mon, 11 Jul 2022 12:14:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 11 Jul 2022 12:14:07 -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=1657556046; x=1657642446; bh=8t4I//RW47 CeAaAThAfY3Yq68fyIOTxwgFyfMjLNWYg=; b=mlSMW8oZI8Cp0uXYgIJBLQ5qx/ aulMGp6uSNSyp+vKvI6dc1PR8QOynmHTFY9jvp2qa9zvWon5iXR5waszl+bbn5Pl sq/8ICz2Cl80W3Az6oVc58p8AEbQ2YBzPORqMBv3IuAqBDb5kgMMucodg6r/tKql 5Gg/49/holeFmCpvzRWLDKo6BaVdSqQb4+LIHDCsASlw8v/XzrubhvUNZIxyW+eA LaRFQ3tpXVYh5CRYFXIznoZ3i18Oc6nvL/HbJy2aAewJuU18IbQogLWLxxCnK1g2 93bpLOBs8IzSCp+ZNsoZbJZPA85ayBK6duNkB/JHHseELxHQS7Dx9b0Dc7FQ== 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=1657556046; x=1657642446; bh=8t4I//RW47CeAaAThAfY3Yq68fyI OTxwgFyfMjLNWYg=; b=wbthDJWjgaTaObysHutv0ZKPgj8BpHFXJyh9ojA+rQI7 kLbWjZKM3wU45+RNxhvDl0xcyL4pD/NW0UhG9UUEFddn6z611NUJARvcC9tYqVki IQ9rnwic5YGwKxunIppLhREL+AQOWFwyVfxlQwwbiWTa8QJpNOgEMANwwUUS7NN1 XUmzBkaNjvfpdFmtK//4gT9LTUi+gpP03Mvi7GXJXTfyKXG8hJldVhkPjBrjTzJu a5p5uGXs5wET3kEl5kFWG8IASfNE6P9IKG9Tm7SpmxOYAVqLXDQXlADImDVEhuA2 Pb1+7sJXxrB0R0FWFu0zrgVPSQYBS+IDXKWBQio5kg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejfedgleeiucetufdoteggodetrfdotf 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 12:14:05 -0400 (EDT) Date: Mon, 11 Jul 2022 09:14:04 -0700 From: Andres Freund To: Tom Lane Cc: Peter Eisentraut , David Rowley , pgsql-hackers Subject: Re: automatically generating node support functions Message-ID: <20220711161404.qxq5lwbuzeg63xce@awork3.anarazel.de> References: <3302658.1657288366@sss.pgh.pa.us> <611d2e! 93-6330-47fa-0970-72316aed50f2@enterprisedb.com> <3488143.1657310625@sss.pgh.pa.us> <11148777-fbe2-5188-195d-48f5083573c5@enterprisedb.com> <20220710214622.haiektrjzisob6rl@awork3.anarazel.de> <815831.1657494597@sss.pgh.pa.us> <45f508cb-e30b-c252-e081-4548deafa34c@enterprisedb.com> <1079552.1657549379@sss.pgh.pa.us> <1123940.1657555629@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1123940.1657555629@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 12:07:09 -0400, Tom Lane wrote: > I wrote: > > Peter Eisentraut writes: > >> could not handle type "ScanDirection" in struct "IndexScan" field > >> "indexorderdir" > > > Ah, I see. Still, we could also handle that with > > push @enum_types, qw(ScanDirection); > > I tried that, and it does work. The only other input file we could > get rid of that way is nodes/lockoptions.h, which likewise contributes > only a couple of enum type names. Kinda wonder if those headers are even worth having. Plenty other enums in primnodes.h. > Not sure it's worth messing with --- both ways seem crufty, though for > different reasons. Not sure either. Greetings, Andres Freund