Content-Length: 259401 | pFad | http://github.com/postgrespro/postgres/commit/8ba3cb2f1863e3243aa40d73633bd88f774f74ce

30 Fix for change timeline field of IDENTIFY_SYSTEM to int8 · postgrespro/postgres@8ba3cb2 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/8ba3cb2f1863e3243aa40d73633bd88f774f74ce

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy