]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Relax check for return value from second call of pg_strnxfrm().
authorJeff Davis <jdavis@postgresql.org>
Tue, 30 Jul 2024 23:23:20 +0000 (16:23 -0700)
committerJeff Davis <jdavis@postgresql.org>
Tue, 30 Jul 2024 23:25:21 +0000 (16:25 -0700)
commit403cbd21081939563ec79d100a83b168afcf0300
tree739b188fb6794fd0660afe53a5348c678f482f3c
parent9d198f4d3e3bee1b2f392c1466728f6d19c89ada
Relax check for return value from second call of pg_strnxfrm().

strxfrm() is not guaranteed to return the exact number of bytes needed
to store the result; it may return a higher value.

Discussion: https://postgr.es/m/32f85d88d1f64395abfe5a10dd97a62a4d3474ce.camel@j-davis.com
Reviewed-by: Heikki Linnakangas
Backpatch-through: 16
src/backend/access/hash/hashfunc.c
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/varchar.c