Assorted examples of expanded type-safer palloc/pg_malloc API
Peter Eisentraut <peter@eisentraut.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/dblink/dblink.c | modified | +6 −6 |
| src/backend/access/brin/brin.c | modified | +7 −7 |
| src/backend/access/gin/ginfast.c | modified | +7 −10 |
| src/backend/commands/indexcmds.c | modified | +21 −21 |
| src/backend/commands/prepare.c | modified | +3 −3 |
| src/backend/executor/nodeHash.c | modified | +23 −34 |
| src/backend/tcop/postgres.c | modified | +4 −5 |
| src/bin/pg_dump/common.c | modified | +9 −15 |
| src/bin/pg_dump/pg_backup_tar.c | modified | +5 −5 |
| src/bin/psql/startup.c | modified | +3 −3 |
| src/common/config_info.c | modified | +1 −1 |
| src/common/controldata_utils.c | modified | +1 −1 |
Discussion
- Expand palloc/pg_malloc API 22 messages · 2022-05-17 → 2022-11-09