aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-11-04 07:47:06 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-11-04 12:46:38 +0100
commit82d4a2a7d63e79f6a6724f366cfaa4beed6b8326 (patch)
treef69d6de6fe4c8bb1edccf22dbe86857802219ebe /src/backend/executor/nodeModifyTable.c
parent7d39586a59c6f5816a068bd38e1e4887d4c984ff (diff)
downloadpostgresql-82d4a2a7d63e79f6a6724f366cfaa4beed6b8326.tar.gz
postgresql-82d4a2a7d63e79f6a6724f366cfaa4beed6b8326.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/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions