pgsql: Fix like_fixed_prefix_ci() selectivity.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix like_fixed_prefix_ci() selectivity.
Date: 2026-07-15 19:36:16
Message-ID: E1wk5Oy-000L99-08@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2026-07-15 19:36:23 pgsql: Fix like_fixed_prefix_ci() selectivity.
Previous Message Robert Haas 2026-07-15 18:02:32 pgsql: Add additional sanity checks when reading a blkreftable.