agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify dxsyn_lexize().
Date: Sun, 05 Jul 2026 20:22:48 +0000
Message-ID: <E1wgTMW-001UNU-17@gemulon.postgresql.org> (raw)

Simplify dxsyn_lexize().

There's no need to create and free a temporary copy of the input,
since str_tolower() is already able to cope with not-certainly-
nul-terminated input.  (Before v18, copying was needed because
this code used lowerstr(), but now we can do without.)

Author: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/19525-b0be8e4eb7dbaf07@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9f03dab4574bd2820eec6902c2ef12b28c706733

Modified Files
--------------
contrib/dict_xsyn/dict_xsyn.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)



Message-ID: <E1wgTMW-001UNU-17@gemulon.postgresql.org>
Permalink:  ../E1wgTMW-001UNU-17@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wgTMW-001UNU-17@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Simplify dxsyn_lexize().
  In-Reply-To: <E1wgTMW-001UNU-17@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox