]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix like_fixed_prefix_ci() selectivity.
authorJeff Davis <jdavis@postgresql.org>
Wed, 15 Jul 2026 19:34:20 +0000 (12:34 -0700)
committerJeff Davis <jdavis@postgresql.org>
Wed, 15 Jul 2026 19:35:32 +0000 (12:35 -0700)
commit94e1b104f8db88837e5ef13a6692dad746e3690f
tree44f392ed75288090793b60d7ec485916bdfa3459
parent95c1b8ec7773817d8626d0aad6e7424b3c5ef04d
Fix like_fixed_prefix_ci() selectivity.

A wrong calculation introduced by 9c8de15969 could cause trailing
characters from the prefix to be passed to like_selectivity() rather
than just the "rest".

Discussion: https://postgr.es/m/c7334a7a44243d2e4ec5e83747589908b3787491.camel@j-davis.com
Backpatch-through: 19
src/backend/utils/adt/like_support.c