postgresql/contrib/btree_gin
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 more cross-type comparisons to contrib/btree_gin. 2025-07-03 16:30:38 -04:00
sql Add more cross-type comparisons to contrib/btree_gin. 2025-07-03 16:30:38 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
btree_gin--1.0--1.1.sql Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
btree_gin--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
btree_gin--1.1--1.2.sql Add btree_gin support for enum types 2017-03-21 11:04:17 -04:00
btree_gin--1.2--1.3.sql Add support of bool, bpchar, name and uuid to btree_gin 2018-04-05 18:19:10 +03:00
btree_gin--1.3--1.4.sql Add more cross-type comparisons to contrib/btree_gin. 2025-07-03 16:30:38 -04:00
btree_gin.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
btree_gin.control Add cross-type comparisons to contrib/btree_gin. 2025-07-03 16:24:31 -04:00
Makefile Add cross-type comparisons to contrib/btree_gin. 2025-07-03 16:24:31 -04:00
meson.build Add cross-type comparisons to contrib/btree_gin. 2025-07-03 16:24:31 -04:00