Relax check for return value from second call of pg_strnxfrm().
Jeff Davis <jdavis@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/hash/hashfunc.c | modified | +6 −2 |
| src/backend/utils/adt/pg_locale.c | modified | +6 −6 |
| src/backend/utils/adt/varchar.c | modified | +6 −2 |
Discussion
- [17+] check after second call to pg_strnxfrm is too strict, relax it 3 messages · 2024-07-30 → 2024-07-31