Fix more multibyte issues in ltree

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Fix more multibyte issues in ltree
Date: 2026-02-13 21:56:42
Message-ID: 02c6ef6cf56a5013ede61ad03c7a26affd27d449.camel@j-davis.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Commit 84d5efa7e3 missed some multibyte issues caused by short-circuit
logic in the callers.

Repro:

-- should return true, returns false
SELECT 'sss'::ltree ~ 'ſſ*@'::lquery;

Patches attached; backport to 14 like 84d5efa7e3.

Regards,
Jeff Davis

Attachment Content-Type Size
v19.1-0001-Fix-more-multibyte-issues-in-ltree.patch text/x-patch 8.1 KB
v18.1-0001-Fix-more-multibyte-issues-in-ltree.patch text/x-patch 8.5 KB
v17.1-0001-Fix-more-multibyte-issues-in-ltree.patch text/x-patch 6.7 KB
v16.1-0001-Fix-more-multibyte-issues-in-ltree.patch text/x-patch 6.7 KB
v15.1-0001-Fix-more-multibyte-issues-in-ltree.patch text/x-patch 6.7 KB
v14.1-0001-Fix-more-multibyte-issues-in-ltree.patch text/x-patch 6.7 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2026-02-13 22:14:01 pgstat include expansion
Previous Message Matheus Alcantara 2026-02-13 21:15:13 Re: Add CREATE SCHEMA ... LIKE support