Fix defects in PrepareForIncrementalBackup.
authorRobert Haas <rhaas@postgresql.org>
Wed, 3 Jan 2024 14:59:46 +0000 (09:59 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 3 Jan 2024 14:59:46 +0000 (09:59 -0500)
commitdffde5bf16a590543a35bedffc936a33686651d4
treefe5b3db093a3fd261f7d2150e007e277224a065f
parent8ce5aef2e6337a5c1f6693c486c28310c2b35dfc
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
src/backend/backup/basebackup_incremental.c