Re: BUG #19406: substring(text) fails on valid UTF-8 toasted value in PostgreSQL 15.16

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Noah Misch <noah@leadboat.com>
Cc: ranvis@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2026-02-14T20:19:04Z
Lists: pgsql-bugs
Also, LGTM.



Commits

  1. Suppress new "may be used uninitialized" warning.

  2. Fix SUBSTRING() for toasted multibyte characters.

  3. pg_mblen_range, pg_mblen_with_len: Valgrind after encoding ereport.