pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonathan S. Katz <jkatz@postgresql.org>
To: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Zhihong Yu <zyu@yugabyte.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: unnesting multirange data types
Date: Mon, 14 Jun 2021 08:50:01 -0400
Message-ID: <344921df-ecb8-aebb-cd50-96686978e1c8@postgresql.org> (raw)
In-Reply-To: <CAPpHfdvuiNMT+pR7deWWBb2yybjm-F=-y5AfsC7eX0YDiZtvdg@mail.gmail.com>
References: <CAPpHfds8F7Oh2H5jGQ5+K1A8DjjxmSx-1VJ1F1VVyAP_eazPvQ@mail.gmail.com>
	<20210610220416.GJ16435@telsasoft.com>
	<CAPpHfdufDWMVX5xjOv8LV-s0e4=QUt2P+Gksb8cWi6yjtEZPgA@mail.gmail.com>
	<20210611233017.GO16435@telsasoft.com>
	<CAPpHfdsrAZoJm08wi5k76Gd3FEAa3HprFJG-TzSoC3UHfEQ=QQ@mail.gmail.com>
	<CAPpHfdtwVh4b-7vnjg0fV6AR0tPX6hUVgQY0CPG--j78_7uVDA@mail.gmail.com>
	<3648e50c-eb0d-4d16-7194-1a1c62893726@postgresql.org>
	<CAPpHfdsbQPb6OVpW_XSFfR8fAOCXaaOX+1WrXEZXHUDXp7i4uw@mail.gmail.com>
	<CALNJ-vTFcG=jen6gf1XZYnOSVVHpBys2R_X-q_4bu4siYUzUdg@mail.gmail.com>
	<e60c3955-7fde-8007-e0d4-685776150a91@postgresql.org>
	<20210613154907.GZ16435@telsasoft.com>
	<11f691df-ce18-c32a-438b-979338d5ea1b@postgresql.org>
	<CAPpHfdvuiNMT+pR7deWWBb2yybjm-F=-y5AfsC7eX0YDiZtvdg@mail.gmail.com>

On 6/13/21 5:18 PM, Alexander Korotkov wrote:

>> "Expands an array into a set of rows. The array's elements are read out
>> in storage order."
>>
>> If we tweaked the multirange "unnest" function, we could change it to:
>>
>> +       <para>
>> +        Expands a multirange into a set of rows.
>> +        The ranges are read out in storage order (ascending).
>> +       </para>
>>
>> to match what the array "unnest" function docs, or
>>
>> +       <para>
>> +        Expands a multirange into a set of rows that each
>> +        contain an individual range.
>> +        The ranges are read out in storage order (ascending).
>> +       </para>
>>
>> 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 the
>> "unnest" array function description being confusing.
> 
> 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

Attachments:

  OpenPGP_signature (application/pgp-signature, 839B) download

view thread (66+ messages)  latest in thread

Message-ID: <344921df-ecb8-aebb-cd50-96686978e1c8@postgresql.org>
Permalink:  ../344921df-ecb8-aebb-cd50-96686978e1c8@postgresql.org/
Also on:    postgresql.org/message-id/344921df-ecb8-aebb-cd50-96686978e1c8@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: jkatz@postgresql.org, aekorotkov@gmail.com, pryzby@telsasoft.com, zyu@yugabyte.com, alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us
  Subject: Re: unnesting multirange data types
  In-Reply-To: <344921df-ecb8-aebb-cd50-96686978e1c8@postgresql.org>
  References: <CAPpHfds8F7Oh2H5jGQ5+K1A8DjjxmSx-1VJ1F1VVyAP_eazPvQ@mail.gmail.com> <20210610220416.GJ16435@telsasoft.com> <CAPpHfdufDWMVX5xjOv8LV-s0e4=QUt2P+Gksb8cWi6yjtEZPgA@mail.gmail.com> <20210611233017.GO16435@telsasoft.com> <CAPpHfdsrAZoJm08wi5k76Gd3FEAa3HprFJG-TzSoC3UHfEQ=QQ@mail.gmail.com> <CAPpHfdtwVh4b-7vnjg0fV6AR0tPX6hUVgQY0CPG--j78_7uVDA@mail.gmail.com> <3648e50c-eb0d-4d16-7194-1a1c62893726@postgresql.org> <CAPpHfdsbQPb6OVpW_XSFfR8fAOCXaaOX+1WrXEZXHUDXp7i4uw@mail.gmail.com> <CALNJ-vTFcG=jen6gf1XZYnOSVVHpBys2R_X-q_4bu4siYUzUdg@mail.gmail.com> <e60c3955-7fde-8007-e0d4-685776150a91@postgresql.org> <20210613154907.GZ16435@telsasoft.com> <11f691df-ce18-c32a-438b-979338d5ea1b@postgresql.org> <CAPpHfdvuiNMT+pR7deWWBb2yybjm-F=-y5AfsC7eX0YDiZtvdg@mail.gmail.com> <344921df-ecb8-aebb-cd50-96686978e1c8@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox