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: Assorted examples of expanded type-safer palloc/pg_malloc API
Date: Mon, 12 Sep 2022 06:53:03 +0000
Message-ID: <E1oXdJW-002YLC-Mq@gemulon.postgresql.org> (raw)

Assorted examples of expanded type-safer palloc/pg_malloc API

This adds some uses of the new palloc/pg_malloc variants here and
there as a demonstration and test.  This is kept separate from the
actual API patch, since the latter might be backpatched at some point.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/bb755632-2a43-d523-36f8-a1e7a389a907@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5015e1e1b58f81a036e4ad16291ef4b3bb7a596c

Modified Files
--------------
contrib/dblink/dblink.c          | 12 ++++-----
src/backend/access/brin/brin.c   | 14 +++++-----
src/backend/access/gin/ginfast.c | 17 +++++-------
src/backend/commands/indexcmds.c | 42 ++++++++++++++---------------
src/backend/commands/prepare.c   |  6 ++---
src/backend/executor/nodeHash.c  | 57 ++++++++++++++++------------------------
src/backend/tcop/postgres.c      |  9 +++----
src/bin/pg_dump/common.c         | 24 +++++++----------
src/bin/pg_dump/pg_backup_tar.c  | 10 +++----
src/bin/psql/startup.c           |  6 ++---
src/common/config_info.c         |  2 +-
src/common/controldata_utils.c   |  2 +-
12 files changed, 90 insertions(+), 111 deletions(-)



Message-ID: <E1oXdJW-002YLC-Mq@gemulon.postgresql.org>
Permalink:  ../E1oXdJW-002YLC-Mq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oXdJW-002YLC-Mq@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: Assorted examples of expanded type-safer palloc/pg_malloc API
  In-Reply-To: <E1oXdJW-002YLC-Mq@gemulon.postgresql.org>
  References: <E1oXdJW-002YLC-Mq@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