postgresql/contrib/unaccent
Michael Paquier 31d3847a37 Use more palloc_object() and palloc_array() in contrib/
The idea is to encourage more the use of these new routines across the
tree, as these offer stronger type safety guarantees than palloc().  In
an ideal world, palloc() would then act as an internal routine of these
flavors, whose footprint in the tree is minimal.

The patch sent by the author is very large, and this chunk of changes
represents something like 10% of the overall patch submitted.

The code compiled is the same before and after this commit, using
objdump to do some validation with a difference taken in-between.  There
are some diffs, which are caused by changes in line numbers because some
of the new allocation formulas are shorter, for the following files:
trgm_regexp.c, xpath.c and pg_walinspect.c.

Author: David Geier <geidav.pg@gmail.com>
Discussion: https://postgr.es/m/ad0748d4-3080-436e-b0bc-ac8f86a3466a@gmail.com
2025-12-05 16:40:26 +09:00
..
expected Add simple codepoint redirections to unaccent.rules. 2024-07-05 15:25:31 +12:00
sql unaccent: Add support for quoted translated characters 2023-09-20 12:29:36 +09:00
.gitignore Add support for automatically updating Unicode derived files 2020-01-09 10:08:14 +01:00
generate_unaccent_rules.py Add simple codepoint redirections to unaccent.rules. 2024-07-05 15:25:31 +12:00
Makefile unaccent: Tweak value of PYTHON when building without Python support 2023-09-27 14:40:23 +09:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
unaccent--1.0--1.1.sql Update unaccent extension for parallel query. 2016-06-14 14:55:49 -04:00
unaccent--1.1.sql Update unaccent extension for parallel query. 2016-06-14 14:55:49 -04:00
unaccent.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
unaccent.control Mark some contrib modules as "trusted". 2020-02-13 15:02:35 -05:00
unaccent.rules Add simple codepoint redirections to unaccent.rules. 2024-07-05 15:25:31 +12:00