Thread
Commits
-
Enable hash partitioning of text arrays
- ea9087938131 12.5 landed
- 82d4a2a7d63e 13.1 landed
- 560564d3addc 14.0 landed
-
Collations with nondeterministic comparison
- 5e1963fb764e 12.0 cited
-
hash_array_extended() needs to pass down collation
Peter Eisentraut <peter.eisentraut@enterprisedb.com> — 2020-11-02T07:40:11Z
I noticed that hash_array_extended() does not pass down the collation to the element's collation function, unlike hash_array(). As a consequence, hash partitioning using text arrays as partition key fails. The attached patch fixes this. I propose to backpatch this.
-
Re: hash_array_extended() needs to pass down collation
Heikki Linnakangas <hlinnaka@iki.fi> — 2020-11-02T11:52:48Z
On 02/11/2020 09:40, Peter Eisentraut wrote: > I noticed that hash_array_extended() does not pass down the collation to > the element's collation function, unlike hash_array(). As a > consequence, hash partitioning using text arrays as partition key fails. > > The attached patch fixes this. I propose to backpatch this. +1. Straightforward oversight in commit 5e1963fb764e. - Heikki
-
Re: hash_array_extended() needs to pass down collation
Tom Lane <tgl@sss.pgh.pa.us> — 2020-11-02T15:01:53Z
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes: > I noticed that hash_array_extended() does not pass down the collation to > the element's collation function, unlike hash_array(). As a > consequence, hash partitioning using text arrays as partition key fails. > The attached patch fixes this. I propose to backpatch this. LGTM regards, tom lane
-
Re: hash_array_extended() needs to pass down collation
Michael Paquier <michael@paquier.xyz> — 2020-11-03T10:48:54Z
On Mon, Nov 02, 2020 at 10:01:53AM -0500, Tom Lane wrote: > Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes: >> I noticed that hash_array_extended() does not pass down the collation to >> the element's collation function, unlike hash_array(). As a >> consequence, hash partitioning using text arrays as partition key fails. > >> The attached patch fixes this. I propose to backpatch this. > > LGTM +1. -- Michael
-
Re: hash_array_extended() needs to pass down collation
Peter Eisentraut <peter.eisentraut@enterprisedb.com> — 2020-11-04T11:51:40Z
On 2020-11-03 11:48, Michael Paquier wrote: > On Mon, Nov 02, 2020 at 10:01:53AM -0500, Tom Lane wrote: >> Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes: >>> I noticed that hash_array_extended() does not pass down the collation to >>> the element's collation function, unlike hash_array(). As a >>> consequence, hash partitioning using text arrays as partition key fails. >> >>> The attached patch fixes this. I propose to backpatch this. >> >> LGTM > > +1. committed