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 1oAvwL-0008EP-WE for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 16:07:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAvwK-00035Y-2w for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 16:07:16 +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 1oAvwJ-00033E-PY for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 16:07:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAvwH-0008V8-Hw for pgsql-hackers@postgresql.org; Mon, 11 Jul 2022 16:07:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26BG79UU1123941; Mon, 11 Jul 2022 12:07:09 -0400 From: Tom Lane To: Peter Eisentraut cc: Andres Freund , David Rowley , pgsql-hackers Subject: Re: automatically generating node support functions In-reply-to: <1079552.1657549379@sss.pgh.pa.us> References: <1294462.1656875649@sss.pgh.pa.us> <57df9f30-d2cf-9126-28d4-ae40a2e733a9@enterprisedb.com> <1593978.1656953960@sss.pgh.pa.us> <2592455.1657140387@sss.pgh.pa.us> <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> Comments: In-reply-to Tom Lane message dated "Mon, 11 Jul 2022 10:22:59 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1123939.1657555629.1@sss.pgh.pa.us> Date: Mon, 11 Jul 2022 12:07:09 -0400 Message-ID: <1123940.1657555629@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. Not sure it's worth messing with --- both ways seem crufty, though for different reasons. regards, tom lane