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 1lsm2d-0005WR-KY for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jun 2021 12:50:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lsm2c-0004Nm-Ba for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jun 2021 12:50:10 +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 1lsm2c-0004Ne-3e for pgsql-hackers@lists.postgresql.org; Mon, 14 Jun 2021 12:50:10 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsm2a-0007e9-Dx for pgsql-hackers@lists.postgresql.org; Mon, 14 Jun 2021 12:50:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ezrDpcFDesKtJqS9/MNdX9HCCqxBaoHTr2j16ZMFyG0=; b=A/aIi2unmiiVk8Yn30MGXV38qD J1hyWT3y2oa/663SZCYD/9OheeogFunyRc8eyzLr5ANwnN9/xQn46fAU6GfJzLtVEVHB2VdgfZVgd TVw6aPL/Zl8+PwszrDwMksPJn01pZ/OWsPH4V7DSWCk2AMLgFLYFqaDhCns4K9kU86VnyxHTKXXpm tsrzELyEUfCP2ppMoV2ARzkL/uPYXDN3H6vF+0nmPnU79HiB2lxyvT8Kt2shzghXmh6a7B8qN9DbK TPr8QcxRsr9oBzF1uuKJOtA5eB15GqgvnqbAlfDtsmIDApT6Q3JjW6MjCUS6RjWiMf5tmc32SYcct wIkPCuSw==; Received: from pool-71-105-8-149.nycmny.fios.verizon.net ([71.105.8.149] helo=[192.168.1.153]) by meldrar.postgresql.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lsm2X-00086s-S3; Mon, 14 Jun 2021 12:50:08 +0000 Subject: Re: unnesting multirange data types To: Alexander Korotkov Cc: Justin Pryzby , Zhihong Yu , Alvaro Herrera , Tom Lane , PostgreSQL Hackers References: <20210610220416.GJ16435@telsasoft.com> <20210611233017.GO16435@telsasoft.com> <3648e50c-eb0d-4d16-7194-1a1c62893726@postgresql.org> <20210613154907.GZ16435@telsasoft.com> <11f691df-ce18-c32a-438b-979338d5ea1b@postgresql.org> From: "Jonathan S. Katz" Message-ID: <344921df-ecb8-aebb-cd50-96686978e1c8@postgresql.org> Date: Mon, 14 Jun 2021 08:50:01 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UqDcthswCeYeerPNLEI2GyT8s7hzJ0ZFn" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UqDcthswCeYeerPNLEI2GyT8s7hzJ0ZFn Content-Type: multipart/mixed; boundary="ldcM8XWxVF7BEcsu5773S7hD8nHrFgHdK"; protected-headers="v1" From: "Jonathan S. Katz" To: Alexander Korotkov Cc: Justin Pryzby , Zhihong Yu , Alvaro Herrera , Tom Lane , PostgreSQL Hackers Message-ID: <344921df-ecb8-aebb-cd50-96686978e1c8@postgresql.org> Subject: Re: unnesting multirange data types References: <20210610220416.GJ16435@telsasoft.com> <20210611233017.GO16435@telsasoft.com> <3648e50c-eb0d-4d16-7194-1a1c62893726@postgresql.org> <20210613154907.GZ16435@telsasoft.com> <11f691df-ce18-c32a-438b-979338d5ea1b@postgresql.org> In-Reply-To: --ldcM8XWxVF7BEcsu5773S7hD8nHrFgHdK Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 6/13/21 5:18 PM, Alexander Korotkov wrote: >> "Expands an array into a set of rows. The array's elements are read ou= t >> in storage order." >> >> If we tweaked the multirange "unnest" function, we could change it to:= >> >> + >> + Expands a multirange into a set of rows. >> + The ranges are read out in storage order (ascending). >> + >> >> to match what the array "unnest" function docs, or >> >> + >> + Expands a multirange into a set of rows that each >> + contain an individual range. >> + The ranges are read out in storage order (ascending). >> + >> >> to be a bit more specific. However, I think this is also bordering on >> overengineering the text, given there has been a lack of feedback on t= he >> "unnest" array function description being confusing. >=20 > I think it's not necessarily to say about rows here. Our > documentation already has already a number of examples, where we > describe set of returned values without speaking about rows including: > json_array_elements, json_array_elements_text, json_object_keys, > pg_listening_channels, pg_tablespace_databases... I do agree -- my main point was that I don't think we need to change anything. I proposed alternatives just to show some other ways of looking at it. But as I mentioned, at this point I think it's overengineering the text. If folks are good with the method + code, I think this is ready. Thanks, Jonathan --ldcM8XWxVF7BEcsu5773S7hD8nHrFgHdK-- --UqDcthswCeYeerPNLEI2GyT8s7hzJ0ZFn Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEE+oS2la8r95ogZD/x8QSccp8cZScFAmDHUHkFAwAAAAAACgkQ8QSccp8cZSde pQ//RvjgAcuMdIeO4Jp3vBS/SwEDK3o8EDUwVlfkVMcrPjDNgR9NT1KoGzaeMnSGbHOwj/iYRkCv wIMUulzPxQVN+ZOF5qeK3orCqzaRG3kMlIOxLnPbjdoEbtIeiZyGxBwg3EQIvTKhxRDVO1nMuCyU 0gI+z4zSEETCyA5Td2xx3QSOj9ttQvmWK6aWeLs4gKhOuxqJzYK5qxC4lqHFifrfoZ3NuL6tzkf0 y9zj7tQnO1nUPpPG+JKALoQmdoZPjJgXI6Kk+mS1WDqZa6S1UxSgsB84XwCEUb7/+X7J+caABOe6 N6uRPbTa5jLFrS/gDsnm5F6/p3qg6ckDabNmDDgDiYVAuvf9ry8RQz+jls3s2l81EEsWXtME/hWV zs6UZxFvh7NKmAdRQQ3OxjLgpHgYguPaTqgKFGewiUtE4n1z7zOyWWvDBx7/W6qtoePzYUFjdGV9 riUfUmuD0SjImoyPrxBVj8o5fYhIINIl8NEGHUve0+NmnqvoEYVjL+MxygSOofEu2bwqzIiZrI37 yynOr4qnxe6Fhtihm4XCwapmvK6UHPrVW29ju3K+wHPfYRhdac2SQXPiLMcKm7js7xDcednd3TWu EI7UKsqOXjwLWBgp6i7ssprrzu/yCSPw1SAxrYn9sHaG64+HYIvAnjMVt+ee4fFnA8jI4AGtmCtz aB0= =7Vc8 -----END PGP SIGNATURE----- --UqDcthswCeYeerPNLEI2GyT8s7hzJ0ZFn--