diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index fa60c92e13a..cb4a8586873 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -457,7 +457,7 @@ IdentifySystem(void) values[0] = CStringGetTextDatum(sysid); /* column 2: timeline */ - values[1] = Int32GetDatum(currTLI); + values[1] = Int64GetDatum(currTLI); /* column 3: wal location */ values[2] = CStringGetTextDatum(xloc);