pgsql: Use [re]palloc_array() in buffile.c and fd.c

Started by Michael Paquier4 months ago1 messagescommitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

Use [re]palloc_array() in buffile.c and fd.c

The code paths patched in this commit fix some of remnants not addressed
by 1b105f9472bd. We should have more holes in the tree that could
benefit from stronger type safety guarantees. These hypothetical holes
could be addressed later; this finishes the job in storage/file/ for the
backend code.

Author: Tristan Partin <tristan@partin.io>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Discussion: /messages/by-id/DKBAWPZ2QDOS.10Y3JDUNKFMXX@partin.io

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d64c805dea27d189904394ece7576762bece278c

Modified Files
--------------
src/backend/storage/file/buffile.c | 6 ++----
src/backend/storage/file/fd.c | 4 ++--
2 files changed, 4 insertions(+), 6 deletions(-)