You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Fix potential stack overflow in incremental backup.
The user can set RELSEG_SIZE to a high number at compile time, so wecan't use it to control the size of an array on the stack: it could bemany gigabytes in size. On closer inspection, we don't really need thatintermediate array anyway. Let's just write directly into the outputarray, and then perform the absolute->relative adjustment in place.This fixes new code from commitdc21234.Reviewed-by: Robert Haas <robertmhaas@gmail.com>Discussion:https://postgr.es/m/CA%2BhUKG%2B2hZ0sBztPW4mkLfng0qfkNtAHFUfxOMLizJ0BPmi5%2Bg%40mail.gmail.com