worker.patch
text/x-patch
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
| File | + | − |
|---|---|---|
| src/backend/replication/logical/worker.c | 4 | 2 |
diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c
index 334bf3e7aff..66cc4ec49a1 100644
--- a/src/backend/replication/logical/worker.c
+++ b/src/backend/replication/logical/worker.c
@@ -3885,8 +3885,10 @@ send_feedback(XLogRecPtr recvpos, bool force, bool requestReply)
if (!reply_message)
{
MemoryContext oldctx = MemoryContextSwitchTo(ApplyContext);
-
- reply_message = makeStringInfo();
+ int initsize =
+ sizeof(char) + sizeof(int64) * 3 +
+ sizeof(TimestampTz) + sizeof(bool) + 1;
+ reply_message = makeStringInfoExtended(initsize);
MemoryContextSwitchTo(oldctx);
}
else