Re: hash_array_extended() needs to pass down collation - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: hash_array_extended() needs to pass down collation
Date
Msg-id 5e39bcc2-2d5d-e365-27cc-f2576c516aaf@iki.fi
Whole thread Raw
In response to hash_array_extended() needs to pass down collation  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List 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



pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: Dereference before NULL check (src/backend/storage/ipc/latch.c)
Next
From: Pavel Stehule
Date:
Subject: patch: reduce overhead of execution of CALL statement in no atomic mode from PL/pgSQL