| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Assorted examples of expanded type-safer palloc/pg_malloc API |
| Date: | 2022-09-12 06:53:03 |
| Message-ID: | E1oXdJW-002YLC-Mq@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/flat/bb755632-2a43-d523-36f8-a1e7a389a907(at)enterprisedb(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2022-09-12 07:27:30 | pgsql: Make the tablesync worker's replication origin drop logic robust |
| Previous Message | John Naylor | 2022-09-12 05:11:18 | pgsql: Make eval statement naturally proof against perltidy |