Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qhzxt-004uUQ-MQ for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Sep 2023 22:10:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qhzxq-00CnPk-Hb for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Sep 2023 22:10:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qhzxq-00CnPP-0e for pgsql-hackers@lists.postgresql.org; Sun, 17 Sep 2023 22:10:02 +0000 Received: from pb-smtp21.pobox.com ([173.228.157.53]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qhzxl-005m4Y-MJ for pgsql-hackers@lists.postgresql.org; Sun, 17 Sep 2023 22:10:00 +0000 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 2D7621D0C8; Sun, 17 Sep 2023 18:09:53 -0400 (EDT) (envelope-from david@justatheory.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h= content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; s=sasl; bh=H3aHRYKlcQeAdeoMQ08ZbK9Gsm L71mGyybQGBgmP53E=; b=gOwkrD3Yq14TKchcIipc4QlCbw5+xrwxgIe/dFAIQ6 rz5mE8zdh3RyvKXu3qZ0jsuVYcFah21QyjKsxP/4NK6HLKmlYyuEn1KgoBXPVh/i Pw4feKsk0BCvyi0xBE+E5IaPONp9urcTonsUjzqyqSP+gMTlFkIl8J5git4YMxMC Y= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 2656D1D0C7; Sun, 17 Sep 2023 18:09:53 -0400 (EDT) (envelope-from david@justatheory.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=justatheory.com; h=content-type:mime-version:subject:from:in-reply-to:date:cc:message-id:references:to; s=2016-12.pbsmtp; bh=H3aHRYKlcQeAdeoMQ08ZbK9GsmL71mGyybQGBgmP53E=; b=FHH7dFBdRxZfzIkGLQDWByM5Xz272qU/bVSOwanZndrV13m1yxjVLHfmPq5YCg9mLeDzGX0R4zpHtzVn28FN+O6DDK4HQA24U5zOi6PwIntpZT9ZTh+oLaQaKrgc7UmhhPlJZ/dhO5BBZRwobt/tGoO3P7VyCrXvedbim9yM0T8= Received: from smtpclient.apple (unknown [158.222.197.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 262991D0C6; Sun, 17 Sep 2023 18:09:49 -0400 (EDT) (envelope-from david@justatheory.com) Content-Type: multipart/signed; boundary="Apple-Mail=_8E959787-1AC7-4A00-BEA0-04095AA28BEF"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: JSON Path and GIN Questions From: "David E. Wheeler" In-Reply-To: <4097442.1694967650@sss.pgh.pa.us> Date: Sun, 17 Sep 2023 18:09:36 -0400 Cc: pgsql-hackers@lists.postgresql.org Message-Id: <636E83FD-DC39-48F2-8F81-ED133AF5289A@justatheory.com> References: <15DD78A5-B5C4-4332-ACFE-55723259C07F@justatheory.com> <133696180.303713.1694566807910@office.mailbox.org> <640942d7-c996-0562-62c9-d69a4c1f9b1e@xs4all.nl> <3063408.1694666518@sss.pgh.pa.us> <3802532.1694812485@sss.pgh.pa.us> <8504C88E-A036-47F4-8FAE-9BA95F55CB03@justatheory.com> <3826235.1694824574@sss.pgh.pa.us> <4097442.1694967650@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3731.700.6) X-Pobox-Relay-ID: EB2E3498-55A6-11EE-B0B4-A19503B9AAD1-76319746!pb-smtp21.pobox.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_8E959787-1AC7-4A00-BEA0-04095AA28BEF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Sep 17, 2023, at 12:20, Tom Lane wrote: > After thinking about it for awhile, I think we need some more > discursive explanation of what's allowed, perhaps along the lines > of the attached. (I still can't shake the feeling that this is > duplicative; but I can't find anything comparable until you get > into the weeds in Section V.) >=20 > I put the new text at the end of section 11.1, but perhaps it > belongs a little further up in that section; it seems more > important than some of the preceding paras. I think this is useful, but also that it=E2=80=99s worth calling out = explicitly that functions do not count as indexable operators. True by = definition, of course, but I at least had assumed that since an operator = is, in a sense, syntax sugar for a function call, they are in some sense = the same thing. A header might be useful, something like =E2=80=9CWhat Counts as an = indexable expression=E2=80=9D. Best, David --Apple-Mail=_8E959787-1AC7-4A00-BEA0-04095AA28BEF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd+KfmbOQis6ZycGGkt9idPjIgfEFAmUHeSAACgkQkt9idPjI gfEcRA/9Em7I4qrlm0hGeVl56xTAsQAgdTKgBY98nmMkV++gC0BMyHmW8qlnifWe gPsYIZbBvciEEz+E1Qismd5BClacySYAXMAsauv1JURVCLH0WTMv9mRtX+ivxQKf C4jwGxjO+Li/Iap+NbpgbN0dM7wyKQbzScRQSHmXeNOgslZAi/ee14TZw9k1EQKH a1zR7M3zfEwubEVcA88tRLwie+tH21fpVZ3kcMmZBc1p3lxGeDBaMxrmb5xiJDLB In4VkSJz7JUAHkjcEDjwIBbE7xpm1iKzWd0SUup1HX7RMaKrq0UnIbV0kO7suDe7 +Fe55wTPDRbBdo+Eh6qS1yj3F5ZebmHO+2ZoqPIS1T2CaJgF9NGE6BF15oglgeVm hzL+BrjxOkF4f/R6FL9IkyZl2VhovxXSS5D5ailY/9UxGD+Lb/nR5STLubunvMpu w1Mdoff4NgupOe/SDTgnWvzXPhwaj7ZoH0Trbj3N4dP/mz0keVz+1gZbj2glkYie vmNF8SmOTd6qWTxa3ot1vD4+qPjchERsqADORrOcSQ5SQeB9An7SaBhAGFOK5lLU iaYww/YwXuhj/f4sBkyzZPFLJcFqVmLZ0erazOGZ6buN984gcTNUeJzFCm7fVt5J Q4oY2PP+wAG7HNG255rAjGeJd4IwCLtx34faFrKtS9+nXZTRQYw= =hdCv -----END PGP SIGNATURE----- --Apple-Mail=_8E959787-1AC7-4A00-BEA0-04095AA28BEF--