pgsql: Remove custom memory allocation layer in pgcrypto - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Remove custom memory allocation layer in pgcrypto
Date
Msg-id E1kLcVr-0004Tm-OZ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Remove custom memory allocation layer in pgcrypto

PX_OWN_ALLOC was intended as a way to disable the use of palloc(), and
over the time new palloc() or equivalent calls have been added like in
32984d8, making this extra layer losing its original purpose.  This
simplifies on the way some code paths to use palloc0() rather than
palloc() followed by memset(0).

Author: Daniel Gustafsson
Discussion: https://postgr.es/m/A5BFAA1A-B2E8-4CBC-895E-7B1B9475A527@yesql.se

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ca7f8e2b86e5f15a40b67e6199d714f45a467ff1

Modified Files
--------------
contrib/pgcrypto/imath.c            | 10 +++++-----
contrib/pgcrypto/internal-sha2.c    | 28 ++++++++++++----------------
contrib/pgcrypto/internal.c         | 32 +++++++++++++-------------------
contrib/pgcrypto/mbuf.c             | 30 ++++++++++++++----------------
contrib/pgcrypto/openssl.c          |  8 ++++----
contrib/pgcrypto/pgp-cfb.c          |  5 ++---
contrib/pgcrypto/pgp-compress.c     | 18 ++++++++----------
contrib/pgcrypto/pgp-decrypt.c      | 11 +++++------
contrib/pgcrypto/pgp-encrypt.c      |  9 ++++-----
contrib/pgcrypto/pgp-mpi-internal.c |  6 +++---
contrib/pgcrypto/pgp-mpi.c          |  4 ++--
contrib/pgcrypto/pgp-pubenc.c       | 12 ++++++------
contrib/pgcrypto/pgp-pubkey.c       |  5 ++---
contrib/pgcrypto/pgp.c              |  5 ++---
contrib/pgcrypto/px-hmac.c          | 21 ++++++++++-----------
contrib/pgcrypto/px.c               | 32 ++++++++++++++------------------
contrib/pgcrypto/px.h               | 13 -------------
17 files changed, 106 insertions(+), 143 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix handling of -d "connection string" in pg_dump/pg_restore.
Next
From: Thomas Munro
Date:
Subject: pgsql: Defer flushing of SLRU files.