Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8ba3cb2

Browse files
committed
Fix for change timeline field of IDENTIFY_SYSTEM to int8
Amendment to ec40f34: 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.
1 parent ec40f34 commit 8ba3cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/walsender.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ IdentifySystem(void)
457457
values[0] = CStringGetTextDatum(sysid);
458458

459459
/* column 2: timeline */
460-
values[1] = Int32GetDatum(currTLI);
460+
values[1] = Int64GetDatum(currTLI);
461461

462462
/* column 3: wal location */
463463
values[2] = CStringGetTextDatum(xloc);

0 commit comments

Comments
 (0)