postgresql/contrib/sepgsql
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 Update expected output for contrib/sepgsql's regression tests. 2025-10-23 17:47:10 -04:00
sql sepgsql: Adjust regression expected output 2023-08-17 10:51:26 +09:00
t Fix incorrect year in some copyright notices 2025-05-19 09:46:52 +09:00
.gitignore Update expected output for contrib/sepgsql's regression tests. 2025-10-23 17:47:10 -04:00
database.c Avoid including commands/dbcommands.h in so many places 2025-08-28 12:39:04 +02:00
dml.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
hooks.c Use PG_MODULE_MAGIC_EXT in our installable shared libraries. 2025-03-26 11:11:02 -04:00
label.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00
launcher Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Convert sepgsql tests to TAP 2025-01-24 12:39:47 +01:00
meson.build Convert sepgsql tests to TAP 2025-01-24 12:39:47 +01:00
proc.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
relation.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
schema.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
selinux.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
sepgsql-regtest.te Update sepgsql to add mandatory access control for TRUNCATE 2019-11-23 10:46:44 -05:00
sepgsql.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sepgsql.sql.in sepgsql_setcon(). 2012-03-15 16:08:40 -04:00
test_sepgsql Convert sepgsql tests to TAP 2025-01-24 12:39:47 +01:00
uavc.c Use more palloc_object() and palloc_array() in contrib/ 2025-12-05 16:40:26 +09:00