> On Feb 15, 2026, at 05:45, Thomas Munro <[email protected]> wrote:
>
> Hi,
>
> As recently discussed on pgsql-bugs[1], substring() does unnecessary
> work that can easily be deleted. Here's a patch to try that.
>
> [1]
> https://www.postgresql.org/message-id/flat/19406-9867fddddd724fca%40postgresql.org
> <v1-0001-Improve-substring-implementation.patch>
Thanks for the patch. This is a great cleanup. The single-pass logic is more
efficient, the special cases for empty strings have been removed, and the code
is easier to follow now. After reviewing and playing with it, I don’t get any
comment to raise.
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/