pgsql: Don't allocate large buffer on the stack in pg_verifybackup

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't allocate large buffer on the stack in pg_verifybackup
Date: 2024-04-12 14:59:20
Message-ID: E1rvIN6-001knx-4a@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't allocate large buffer on the stack in pg_verifybackup

Per complaint from Andres Freund. Follow his suggestion to allocate the
buffer once in the calling routine instead.

Also make a tiny indentation improvement.

Discussion: https://postgr.es/m/20240411190147.a3yries632olfcgg@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/929c05774b512bdf7ea4a5912fa2f4d63fc90712

Modified Files
--------------
src/bin/pg_verifybackup/pg_verifybackup.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2024-04-12 16:56:26 pgsql: Move libpq encryption negotiation tests
Previous Message David Rowley 2024-04-12 11:16:25 pgsql: Fix recently introduced typo in code comment