From 069b9896832412555470e30b481df8cc1e6bebec Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 19 May 2022 12:26:45 +0200 Subject: [PATCH 1/4] Fix attlen in RowDescription of BASE_BACKUP response Should be 8 for int8, not -1. --- src/backend/replication/basebackup_copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/replication/basebackup_copy.c b/src/backend/replication/basebackup_copy.c index cabb077240..1eed9d8c3f 100644 --- a/src/backend/replication/basebackup_copy.c +++ b/src/backend/replication/basebackup_copy.c @@ -361,7 +361,7 @@ SendXlogRecPtrResult(XLogRecPtr ptr, TimeLineID tli) * would not be wide enough for this, as TimeLineID is unsigned. */ pq_sendint32(&buf, INT8OID); /* type oid */ - pq_sendint16(&buf, -1); + pq_sendint16(&buf, 8); pq_sendint32(&buf, 0); pq_sendint16(&buf, 0); pq_endmessage(&buf); base-commit: ac0e2d387a044faed310cbfe2fae78ecb0f6a4b6 -- 2.36.1