Fix defects in PrepareForIncrementalBackup.

Robert Haas <rhaas@postgresql.org>

Commit: dffde5bf16a590543a35bedffc936a33686651d4
Author: Robert Haas <rhaas@postgresql.org>
Date: 2024-01-03T14:59:46Z
Releases: 17.0
Fix defects in PrepareForIncrementalBackup.

Swap the arguments to TimestampDifferenceMilliseconds so that we get
a positive answer instead of zero.

Then use the result of that computation instead of ignoring it.

Per reports from Alexander Lakhin.

Discussion: http://postgr.es/m/8b686764-7ac1-74c3-70f9-b64685a2535f@gmail.com

Files

PathChange+/−
src/backend/backup/basebackup_incremental.c modified +2 −2

Discussion