From 2a7fb520755f9132e0e9db7b4868887ac1af55bd Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 6 Jun 2023 20:30:53 +0300 Subject: [PATCH] Initialize 'recordXtime' to silence compiler warning. In reality, recordXtime will always be set by the getRecordTimestamp call, but the compiler doesn't necessarily see that. Back-patch to all supported versions. Author: Tristan Partin Discussion: https://www.postgresql.org/message-id/CT5MN8E11U0M.1NYNCHXYUHY41@gonk --- src/backend/access/transam/xlogrecovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c index a0e984aae04..166f7b7b793 100644 --- a/src/backend/access/transam/xlogrecovery.c +++ b/src/backend/access/transam/xlogrecovery.c @@ -2621,7 +2621,7 @@ recoveryStopsAfter(XLogReaderState *record) uint8 info; uint8 xact_info; uint8 rmid; - TimestampTz recordXtime; + TimestampTz recordXtime = 0; /* * Ignore recovery target settings when not in archive recovery (meaning -- 2.39.5