diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-07-04 08:06:05 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-07-04 08:06:05 +0200 |
commit | 8ba3cb2f1863e3243aa40d73633bd88f774f74ce (patch) | |
tree | eabb526e1ef9334e120100f8775c87aee121ceca | |
parent | ec40f3422412cfdc140b5d3f67db7fd2dac0f1e2 (diff) | |
download | postgresql-8ba3cb2f1863e3243aa40d73633bd88f774f74ce.tar.gz postgresql-8ba3cb2f1863e3243aa40d73633bd88f774f74ce.zip |
Fix for change timeline field of IDENTIFY_SYSTEM to int8
Amendment to ec40f3422412cfdc140b5d3f67db7fd2dac0f1e2: We also need to
change the way the datum is supplied to int8. Otherwise, the value is
still cut off as an int4, and it will crash on 32-bit platforms.
-rw-r--r-- | src/backend/replication/walsender.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |