postgresql/contrib/pg_walinspect
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 Standardize LSN formatting by zero padding 2025-07-07 13:57:43 +02:00
sql During online checkpoints, insert XLOG_CHECKPOINT_REDO at redo point. 2023-10-19 14:47:29 -04:00
.gitignore Add contrib/pg_walinspect. 2022-04-08 00:26:44 -07:00
Makefile Refactor and improve tests of pg_walinspect 2023-03-13 13:03:29 +09:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_walinspect--1.0--1.1.sql Add show_data option to pg_get_wal_block_info. 2023-03-31 14:02:52 -07:00
pg_walinspect--1.0.sql Use float8 datatype for percentiles in pg_walinspect stat functions 2022-09-12 10:01:00 +02:00
pg_walinspect.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
pg_walinspect.control pg_walinspect: Add pg_get_wal_fpi_info() 2023-01-23 13:55:18 +09:00
walinspect.conf Fix buildfarm failures in pg_walinspect tests. 2022-04-08 03:21:12 -07:00