diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-11-04 07:47:06 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-11-04 12:46:28 +0100 |
commit | 560564d3addcb6c54e13c1ca8bd11afafbb7ba11 (patch) | |
tree | 53ac268f527f647e95485ec6dde4c66a52d8026d /src/backend/access/transam/xlog.c | |
parent | 37d2ff38031262a1778bc76a9c55fff7afbcf275 (diff) | |
download | postgresql-560564d3addcb6c54e13c1ca8bd11afafbb7ba11.tar.gz postgresql-560564d3addcb6c54e13c1ca8bd11afafbb7ba11.zip |
Enable hash partitioning of text arrays
hash_array_extended() needs to pass PG_GET_COLLATION() to the hash
function of the element type. Otherwise, the hash function of a
collation-aware data type such as text will error out, since the
introduction of nondeterministic collation made hash functions require
a collation, too.
The consequence of this is that before this change, hash partitioning
using an array over text in the partition key would not work.
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/32c1fdae-95c6-5dc6-058a-a90330a3b621%40enterprisedb.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions