From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Switch some palloc/memset calls to palloc0 |
Date: | 2019-03-27 03:03:10 |
Message-ID: | E1h8yqM-0001nj-R9@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Switch some palloc/memset calls to palloc0
Some code paths have been doing some allocations followed by an
immediate memset() to initialize the allocated area with zeros, this is
a bit overkill as there are already interfaces to do both things in one
call.
Author: Daniel Gustafsson
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/vN0OodBPkKs7g2Z1uyk3CUEmhdtspHgYCImhlmSxv1Xn6nY1ZnaaGHL8EWUIQ-NEv36tyc4G5-uA3UXUF2l4sFXtK_EQgLN1hcgunlFVKhA=@yesql.se
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1983af8e899389187026cb34c1ca9d89ea986120
Modified Files
--------------
contrib/tablefunc/tablefunc.c | 7 ++-----
src/backend/access/gist/gist.c | 3 +--
src/bin/pg_dump/pg_backup_archiver.c | 3 +--
src/bin/pg_dump/pg_dump_sort.c | 3 +--
src/bin/pgbench/pgbench.c | 3 +--
5 files changed, 6 insertions(+), 13 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2019-03-27 08:47:20 | pgsql: Fix off-by-one error in txid_status(). |
Previous Message | Michael Paquier | 2019-03-27 02:36:01 | pgsql: Switch function current_schema[s]() to be parallel-unsafe |