aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-07-04 07:25:26 +0200
committerPeter Eisentraut <peter@eisentraut.org>2022-07-04 07:31:54 +0200
commit4e85b97304a74f5f0fc82136b95f0d5a67b7fd53 (patch)
treed3c3600021a127f1d5b86cb5d92ebf182642cd02
parent255625df1d3a9823c891d585fbf5c3bb913182eb (diff)
downloadpostgresql-4e85b97304a74f5f0fc82136b95f0d5a67b7fd53.tar.gz
postgresql-4e85b97304a74f5f0fc82136b95f0d5a67b7fd53.zip
Fix attlen in RowDescription of BASE_BACKUP response
Should be 8 for int8, not -1. Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/7e4fdbdc-699c-4cd0-115d-fb78a957fc22@enterprisedb.com
-rw-r--r--src/backend/replication/basebackup_copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/basebackup_copy.c b/src/backend/replication/basebackup_copy.c
index cabb0772402..1eed9d8c3f7 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);