postgresql/contrib/ltree
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
..
data Add ltree data type to contrib, from Teodor Sigaev and Oleg Bartunov. 2002-07-30 16:40:34 +00:00
expected Fix contrib/ltree's subpath() with negative offset. 2025-11-01 13:25:42 -04:00
sql Fix contrib/ltree's subpath() with negative offset. 2025-11-01 13:25:42 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
_ltree_gist.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
_ltree_op.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
crc32.c Adjust MSVC build scripts to parse Makefiles for defines 2021-07-29 12:01:23 +12:00
crc32.h Add support for binary I/O of ltree, lquery, and ltxtquery types. 2020-04-01 17:31:29 -04:00
lquery_op.c Remove useless character-length checks in contrib/ltree. 2022-10-06 11:18:32 -04:00
ltree--1.0--1.1.sql Make contrib modules' installation scripts more secure. 2020-08-10 10:44:42 -04:00
ltree--1.1--1.2.sql Add support for binary I/O of ltree, lquery, and ltxtquery types. 2020-04-01 17:31:29 -04:00
ltree--1.1.sql Update extensions with GIN/GIST support for parallel query. 2016-06-14 13:34:37 -04:00
ltree--1.2--1.3.sql Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
ltree.control Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
ltree.h Allow hyphens in ltree labels 2023-01-06 16:05:46 -05:00
ltree_gist.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
ltree_io.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
ltree_op.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
ltreetest.sql Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
ltxtquery_io.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
ltxtquery_op.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
Makefile Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00