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 1ngp0r-0002mE-TD for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 14:39:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngp0q-0004tA-Cr for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 14:39:28 +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 1ngp0q-0004rA-35 for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 14:39:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngp0o-0007Ju-0H for pgsql-hackers@postgresql.org; Tue, 19 Apr 2022 14:39:27 +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 23JEdLb12550131; Tue, 19 Apr 2022 10:39:21 -0400 From: Tom Lane To: Alvaro Herrera cc: Peter Eisentraut , pgsql-hackers Subject: Re: automatically generating node support functions In-reply-to: <202204191140.3wsbevfhqmu3@alvherre.pgsql> References: <202204191140.3wsbevfhqmu3@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 19 Apr 2022 13:40:42 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2550129.1650379161.1@sss.pgh.pa.us> Date: Tue, 19 Apr 2022 10:39:21 -0400 Message-ID: <2550130.1650379161@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > I rebased this mostly out of curiousity. I fixed some smallish > conflicts and fixed a typedef problem new in JSON support; however, even > with these fixes it doesn't compile, because JsonPathSpec uses a novel > typedef pattern that apparently will need bespoke handling in the > gen_nodes_support.pl script. It seemed better to post this even without > that, though. Maybe we should fix JsonPathSpec to be less creative while we still can? It's not real clear to me why that typedef even exists, rather than using a String node, or just a plain char * field. regards, tom lane