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

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