From: | Martin Kalcher <martin(dot)kalcher(at)aboutsource(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Proposal to introduce a shuffle function to intarray extension |
Date: | 2022-07-18 07:12:50 |
Message-ID: | 1bebc445-842d-4594-3116-882a3cc13ede@aboutsource.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Am 18.07.22 um 01:20 schrieb Tom Lane:
>> I would expect that shuffle() only shuffles the first dimension and
>> keeps the inner arrays intact.
>
> This argument is based on a false premise, ie that Postgres thinks
> multidimensional arrays are arrays-of-arrays. They aren't, and
> we're not going to start making them so by defining shuffle()
> at variance with every other array-manipulating function. Shuffling
> the individual elements regardless of array shape is the definition
> that's consistent with our existing functionality.
Hey Tom,
thank you for clarification. I did not know that. I will make a patch
that is using deconstruct_array().
Martin
From | Date | Subject | |
---|---|---|---|
Next Message | Martin Kalcher | 2022-07-18 07:47:30 | Re: Proposal to introduce a shuffle function to intarray extension |
Previous Message | Tom Lane | 2022-07-17 23:20:33 | Re: Proposal to introduce a shuffle function to intarray extension |
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Guo | 2022-07-18 07:13:05 | Re: Problem about postponing gathering partial paths for topmost scan/join rel |
Previous Message | Julien Rouhaud | 2022-07-18 07:11:51 | Re: Allow file inclusion in pg_hba and pg_ident files |