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 1ngpEm-0003aM-H1 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 14:53:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngpEl-0003R1-Ci for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 14:53:51 +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 1ngpEl-0003I0-1m for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 14:53:51 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngpEi-0007Qx-Bn for pgsql-hackers@postgresql.org; Tue, 19 Apr 2022 14:53:50 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EAB9C5C00F5; Tue, 19 Apr 2022 10:53:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 19 Apr 2022 10:53:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date: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=1650380026; x=1650466426; bh=5wp7sJ6eTwfxu jvhZgCnv2MBZrqnnCAIlgwwevnhwKo=; b=giNgbENO2i2p4FqCozYQyFQ1Ksn5z 1/BMuTWOuPXOYMqWK7WP6cIIh4iPzOPLXfXqViea9W2AVAlvRQr+RyBvsf99r31Q yuZqD+zX2TgV/vX25HhUsBOEXG0y08A8z071ly2XHSymQxC7N8QiSNukK3gxt6GY 5735Fr+OSffczRjyvACbRZgRc953vv+FA5NkHp6VHSLWvvJi579TAQ+b3EetSUMQ 5SE/pTMtsYGjh16aSaVSJg4KFH5OE+7Eza7kyK0JKLQXgZSyxD1XxSU1qIIEWidl ya7pI/fkh5kUB6idAzRPEvx981/n4gf6Z6ketZWd1D10oLRuPML6iWwQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvddtfedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepfeejgeehteeuhfevvedu leeufedtjeetiefftedvudfhtdeifefgueettdevgefgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Apr 2022 10:53:46 -0400 (EDT) Message-ID: <31d17e34-afc7-b9fc-c14a-725547ce24ed@enterprisedb.com> Date: Tue, 19 Apr 2022 16:53:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: automatically generating node support functions Content-Language: en-US To: Tom Lane , Alvaro Herrera Cc: pgsql-hackers References: <202204191140.3wsbevfhqmu3@alvherre.pgsql> <2550130.1650379161@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <2550130.1650379161@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 19.04.22 16:39, Tom Lane wrote: > 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. Yeah, let's get rid of it and use char *. I see in JsonCommon a pathspec is converted to a String node, so it's not like JsonPathSpec is some kind of universal representation of the thing anyway.