pgsql: Add repalloc0 and repalloc0_array

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add repalloc0 and repalloc0_array
Date: 2022-11-12 19:44:18
Message-ID: E1otwQL-000oO8-Gl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add repalloc0 and repalloc0_array

These zero out the space added by repalloc. This is a common pattern
that is quite hairy to code by hand.

Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/b66dfc89-9365-cb57-4e1f-b7d31813eeec@enterprisedb.com

Branch
------
master

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

Modified Files
--------------
src/backend/executor/nodeHash.c | 8 ++------
src/backend/libpq/be-fsstubs.c | 9 +++------
src/backend/optimizer/util/placeholder.c | 13 ++++---------
src/backend/optimizer/util/relnode.c | 29 ++++++++---------------------
src/backend/parser/parse_param.c | 10 +++-------
src/backend/storage/lmgr/lwlock.c | 9 ++-------
src/backend/utils/adt/ruleutils.c | 9 ++-------
src/backend/utils/cache/typcache.c | 10 ++--------
src/backend/utils/mmgr/mcxt.c | 20 ++++++++++++++++++++
src/include/utils/palloc.h | 2 ++
10 files changed, 48 insertions(+), 71 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-11-13 07:18:39 pgsql: Refactor ownercheck functions
Previous Message Noah Misch 2022-11-12 19:24:05 pgsql: If wait_for_catchup fails under has_wal_read_bug, skip balance o