diff options
author | Jeff Davis <jdavis@postgresql.org> | 2022-12-01 11:08:47 -0800 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2022-12-02 14:06:31 -0800 |
commit | 7ac0f8d384a4633c6652ae1f6bba40d42d21ec18 (patch) | |
tree | ef6af09d8736e17eb4fdd32b6d3e0ca64ef8eacd /src/backend/executor/nodeModifyTable.c | |
parent | 4c689a69eef639caa881539ee546ff1a5b11f98f (diff) | |
download | postgresql-7ac0f8d384a4633c6652ae1f6bba40d42d21ec18.tar.gz postgresql-7ac0f8d384a4633c6652ae1f6bba40d42d21ec18.zip |
Fix broken hash function hashbpcharextended().
Ignore trailing spaces for non-deterministic collations when
hashing.
The previous behavior could lead to tuples falling into the wrong
partitions when hash partitioning is combined with the BPCHAR type and
a non-deterministic collation. Fortunately, it did not affect hash
indexes, because hash indexes do not use extended hash functions.
Decline to backpatch, per discussion.
Discussion: https://postgr.es/m/eb83d0ac7b299eb08f9b900dd08a5a0c5d90e517.camel@j-davis.com
Reviewed-by: Richard Guo, Tom Lane
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions