Re: pg_rewind copies

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, David Steele <david@pgmasters.net>, Cary Huang <cary.huang@highgo.ca>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-04-05T08:11:17Z
Lists: pgsql-hackers
> On 4 Apr 2022, at 15:08, Peter Eisentraut <peter.eisentraut@enterprisedb.com> wrote:

> We use snprintf() like that countless times, and approximately none of them check for overflow.  So while you are right, this might not be the place to start a new policy.

Fair enough, I'll remove these hunks before committing and will look a bigger
picture patch to address these across the codebase later.

--
Daniel Gustafsson		https://vmware.com/




Commits

  1. pg_rewind: Fetch small files according to new size.