]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Simplify dxsyn_lexize().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Jul 2026 20:22:40 +0000 (16:22 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Jul 2026 20:22:40 +0000 (16:22 -0400)
commit9f03dab4574bd2820eec6902c2ef12b28c706733
tree7af8510b4e4c3983d03db6011362b968b04fcdc4
parent0e4f0827f63900374ce7352f1f9e4c39363218d0
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
contrib/dict_xsyn/dict_xsyn.c