postgresql/contrib/pg_visibility
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 Avoid edge case in pg_visibility test with small shared_buffers 2024-03-25 20:19:43 -07:00
sql Avoid edge case in pg_visibility test with small shared_buffers 2024-03-25 20:19:43 -07:00
t Improve TAP tests by replacing ok() with better Test::More functions 2025-10-17 14:39:09 +09:00
.gitignore Add relkind checks to certain contrib modules 2017-03-09 16:34:25 -05:00
Makefile Fix false reports in pg_visibility 2024-03-14 13:12:05 +02:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_visibility--1.0--1.1.sql pg_visibility: Add pg_truncate_visibility_map function. 2016-06-17 17:37:30 -04:00
pg_visibility--1.1--1.2.sql Default monitoring roles 2017-03-30 14:18:53 -04:00
pg_visibility--1.1.sql pg_visibility: Add pg_truncate_visibility_map function. 2016-06-17 17:37:30 -04:00
pg_visibility.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
pg_visibility.control Default monitoring roles 2017-03-30 14:18:53 -04:00