aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2023-06-06 20:30:53 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2023-06-06 20:30:53 +0300
commit95f0340c3bc745aee3aa90847efd2007e40236e9 (patch)
tree8cc674dbc0e06d455db3f3fe9a7739526fa9a27c /src
parent3f1aaaa180689f2015e7f7bd01c9be6d7a993b42 (diff)
downloadpostgresql-95f0340c3bc745aee3aa90847efd2007e40236e9.tar.gz
postgresql-95f0340c3bc745aee3aa90847efd2007e40236e9.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlogrecovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c
index 4883fcb512b..becc2bda62e 100644
--- a/src/backend/access/transam/xlogrecovery.c
+++ b/src/backend/access/transam/xlogrecovery.c
@@ -2644,7 +2644,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