Re: hash_array_extended() needs to pass down collation

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: hash_array_extended() needs to pass down collation
Date: 2020-11-02 11:52:48
Message-ID: 5e39bcc2-2d5d-e365-27cc-f2576c516aaf@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2020-11-02 12:08:19 patch: reduce overhead of execution of CALL statement in no atomic mode from PL/pgSQL
Previous Message Kyotaro Horiguchi 2020-11-02 11:50:30 Re: Dereference before NULL check (src/backend/storage/ipc/latch.c)