Re: hash_array_extended() needs to pass down collation

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: hash_array_extended() needs to pass down collation
Date: 2020-11-04 11:51:40
Message-ID: 0daf3966-faf8-d66f-21c4-a1587530f8eb@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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(dot)eisentraut(at)enterprisedb(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2020-11-04 13:09:52 Re: Support for NSS as a libpq TLS backend
Previous Message Amit Kapila 2020-11-04 10:32:10 Re: [HACKERS] logical decoding of two-phase transactions