Don't allocate large buffer on the stack in pg_verifybackup
Andrew Dunstan <andrew@dunslane.net>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_verifybackup/pg_verifybackup.c | modified | +11 −6 |
Discussion
- Should we add a compiler warning for large stack frames? 8 messages · 2024-04-11 → 2024-04-12