| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Simplify dxsyn_lexize(). |
| Date: | 2026-07-05 20:22:48 |
| Message-ID: | E1wgTMW-001UNU-17@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)slg01(at)gmail(dot)com>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2026-07-05 22:11:54 | pgsql: Fix psql's pager selection for wrapped expanded output. |
| Previous Message | Peter Eisentraut | 2026-07-05 11:57:11 | pgsql: Fix properties orphaned by dropping a label |