Don't allocate large buffer on the stack in pg_verifybackup
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 12 Apr 2024 14:52:25 +0000 (10:52 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 12 Apr 2024 14:52:25 +0000 (10:52 -0400)
commit929c05774b512bdf7ea4a5912fa2f4d63fc90712
treea4cef878731fe4292b56ca84643c877222ab358d
parent42fa4b660143b66bea1fb90793ec90054e170c93
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
src/bin/pg_verifybackup/pg_verifybackup.c