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

Noah Misch <noah@leadboat.com>

From: Noah Misch <noah@leadboat.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: ranvis@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2026-02-14T22:46:21Z
Lists: pgsql-bugs
On Sun, Feb 15, 2026 at 09:19:04AM +1300, Thomas Munro wrote:
> Also, LGTM.

Pushed as commit 9f4fd11



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.