hash_array_extended() needs to pass down collation

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-11-02T07:40:11Z
Lists: pgsql-hackers

Attachments

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.

Commits

  1. Enable hash partitioning of text arrays

  2. Collations with nondeterministic comparison