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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy