pgsql: Fix like_fixed_prefix_ci() selectivity. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Fix like_fixed_prefix_ci() selectivity.
Date
Msg-id E1wk5Oy-000L99-08@gemulon.postgresql.org
Whole thread
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cc3358087822654d68d7bfb8e80fd797a4b9d1b9

Modified Files
--------------
src/backend/utils/adt/like_support.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Add additional sanity checks when reading a blkreftable.
Next
From: Jeff Davis
Date:
Subject: pgsql: Fix like_fixed_prefix_ci() selectivity.