hash_array_extended() needs to pass down collation

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: hash_array_extended() needs to pass down collation
Date: 2020-11-02 07:40:11
Message-ID: 32c1fdae-95c6-5dc6-058a-a90330a3b621@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Attachment Content-Type Size
0001-Enable-hash-partitioning-of-text-arrays.patch text/plain 7.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2020-11-02 07:40:53 Re: making update/delete of inheritance trees scale better
Previous Message David Rowley 2020-11-02 07:34:28 Reduce the number of special cases to build contrib modules on windows