pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add repalloc0 and repalloc0_array
Date: Sat, 12 Nov 2022 19:44:18 +0000
Message-ID: <E1otwQL-000oO8-Gl@gemulon.postgresql.org> (raw)

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@sss.pgh.pa.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(-)



Message-ID: <E1otwQL-000oO8-Gl@gemulon.postgresql.org>
Permalink:  ../E1otwQL-000oO8-Gl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1otwQL-000oO8-Gl@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Add repalloc0 and repalloc0_array
  In-Reply-To: <E1otwQL-000oO8-Gl@gemulon.postgresql.org>
  References: <E1otwQL-000oO8-Gl@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox