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

Commit 4e85b97

Browse files
committed
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
1 parent 255625d commit 4e85b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/basebackup_copy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ SendXlogRecPtrResult(XLogRecPtr ptr, TimeLineID tli)
361361
* would not be wide enough for this, as TimeLineID is unsigned.
362362
*/
363363
pq_sendint32(&buf, INT8OID); /* type oid */
364-
pq_sendint16(&buf, -1);
364+
pq_sendint16(&buf, 8);
365365
pq_sendint32(&buf, 0);
366366
pq_sendint16(&buf, 0);
367367
pq_endmessage(&buf);

0 commit comments

Comments
 (0)