{"kind": "protocol", "major": "18", "item": {"slug": "logical-message", "name": "Message (logical replication)", "name_zh": "", "category": "\u903b\u8f91\u590d\u5236\u683c\u5f0f", "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "aliases": ["Message"], "content_hash": "03fccf1c5ff60d61650de0e92f596816c0f1e621b200e296cbf9b287a39a79b1", "versions": {"14": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "related": [{"url": "/docs/14/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=14", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sources": [{"url": "/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 14 English manual", "sha256": "4d5309e6070938fb53a3380c66fb64152d7984a368c86536d69ecac5bdb42852"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "5f0bb8688744557c656e9d00ebeee10006d0ce50171dc0d4af074ae3471f08c1", "fragment_sha256": "f5ef5bb64558e6c3c8c07643cb5624dc4c968c887845f23de7e86be33b763794", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "dfe572b136e123cce7c0f3f2941b7f33218ecb6c29cb6d7695f0e6061d396ddb", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "facts_zh": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 53.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Message (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-message", "locale": "zh-Hans", "version": "14", "text_hash": "80e1c943d9291ff75f334102ceac9f80d683da7eacf911bd28de17e68bd5e35c", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "payload": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "5f0bb8688744557c656e9d00ebeee10006d0ce50171dc0d4af074ae3471f08c1", "fragment_sha256": "f5ef5bb64558e6c3c8c07643cb5624dc4c968c887845f23de7e86be33b763794", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "dfe572b136e123cce7c0f3f2941b7f33218ecb6c29cb6d7695f0e6061d396ddb", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 53.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('M')</span></dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span class=\"term\">\n        Int32\n</span></dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span class=\"term\">Int8</span></dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span class=\"term\">\n        Int64\n</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span class=\"term\">String</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span class=\"term\">Int32</span></dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span class=\"term\">Byte<em class=\"replaceable\"><code>n</code></em></span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "version": "14", "link_map": {"/zh/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS": "/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span></dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>\n        Int32\n</span></dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span></dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>\n        Int64\n</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span></dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "f0b910ce2a8f0cdc3868c8885ce23e357892551a9945b1a348da0517a8431a26", "content_hash": "80e1c943d9291ff75f334102ceac9f80d683da7eacf911bd28de17e68bd5e35c", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "Message", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "description": ["Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"], "manual_html": "", "manual_path": "/docs/14/protocol-logicalrep-message-formats.html", "sections_zh": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 53.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/14/datatype-json.html", "method": "same-major semantic node", "sha256": "6caaf22252a97833322c667923644122c2e880284c9f623b4ccbad4929b6ce66", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/14/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "974173f0c434aa608b0dfbb96fc5afa45dfb627cc50d3f630363d784f070e54d", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[9]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Logical replication Message format. Identifies the message as a logical decoding message.", "/versions/14/facts/0/label": "Layer", "/versions/14/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/14/facts/1/label": "First field", "/versions/14/tables/0/title": "Fields in documented order", "/versions/14/related/0/label": "Streaming replication protocol", "/versions/14/related/1/label": "Logical Decoding Plugins", "/versions/14/sections/0/title": "Protocol context", "/versions/14/tables/0/rows/0/c2": "Identifies the message as a logical decoding message.", "/versions/14/tables/0/rows/1/c2": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2.", "/versions/14/tables/0/rows/2/c2": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional.", "/versions/14/tables/0/rows/3/c2": "The LSN of the logical decoding message.", "/versions/14/tables/0/rows/4/c1": "String", "/versions/14/tables/0/rows/4/c2": "The prefix of the logical decoding message.", "/versions/14/tables/0/rows/5/c2": "Length of the content.", "/versions/14/tables/0/rows/6/c1": "Byte n", "/versions/14/tables/0/rows/6/c2": "The content of the logical decoding message.", "/versions/14/sections/0/paragraphs/0": "This section describes the detailed format of each logical replication message. These messages are returned either by the replication slot SQL interface or are sent by a walsender. In case of a walsender they are encapsulated inside the replication protocol WAL messages as described in Section 53.4 and generally obey same message flow as physical replication. The following messages (Stream Start, Stream Stop, Stream Commit, and Stream Abort) are available since protocol version 2. The following message parts are shared by the above messages.", "/versions/14/tables/0/columns/0/label": "Position", "/versions/14/tables/0/columns/1/label": "Format", "/versions/14/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1ace0625e6c17c2f5d504f9068024763b85eff4be5564f28e91f2fc2cb8a93e8", "canonical_center_text_hash": "80e1c943d9291ff75f334102ceac9f80d683da7eacf911bd28de17e68bd5e35c"}, "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}]}, "comparison_hash": "3829c23b52c6b6397d86290553349c1563e40275f8c0cc27fa5b499521105205", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span></dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>\n        Int32\n</span></dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span></dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>\n        Int64\n</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span></dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "15": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "related": [{"url": "/docs/15/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=15", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sources": [{"url": "/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 15 English manual", "sha256": "dce726e09e3bfedfcea89e211772f1afb48a00fd03f33fb94ce66e6d6e2938f5"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "97daa9f092215830aa7163eee131ab5c67aa265ac4d57fb841d34ee0aff44823", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "d4fae4fcbcfe4726c7213f6dccde4c49d850e7d8aa5f11c6ae0661353352e391", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "facts_zh": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 55.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Message (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-message", "locale": "zh-Hans", "version": "15", "text_hash": "08b2aa17685e55bf783de3657269b19350174d2900d40b71e7309295b3f5925a", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "payload": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "97daa9f092215830aa7163eee131ab5c67aa265ac4d57fb841d34ee0aff44823", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "d4fae4fcbcfe4726c7213f6dccde4c49d850e7d8aa5f11c6ae0661353352e391", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 55.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('M')</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span class=\"term\">Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span class=\"term\">Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span class=\"term\">Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span class=\"term\">String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span class=\"term\">Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span class=\"term\">Byte<em class=\"replaceable\"><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "version": "15", "link_map": {"/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE": "/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "d5eabcb010e6bb11a402232de3c44cce994cac0c9132188fdae255b78ab7855d", "content_hash": "08b2aa17685e55bf783de3657269b19350174d2900d40b71e7309295b3f5925a", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "Message", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "description": ["Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"], "manual_html": "", "manual_path": "/docs/15/protocol-logicalrep-message-formats.html", "sections_zh": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 55.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/15/datatype-json.html", "method": "same-major semantic node", "sha256": "1de5ac3fcff666e4a6ac070ff5320df19ce2a518ff29c894afc9071d51b938ff", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/15/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "55b157cac874170762ba43193ac136e49b632d59d2a691073af2f408a7e2b51c", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[9]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Logical replication Message format. Identifies the message as a logical decoding message.", "/versions/15/facts/0/label": "Layer", "/versions/15/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/15/facts/1/label": "First field", "/versions/15/tables/0/title": "Fields in documented order", "/versions/15/related/0/label": "Streaming replication protocol", "/versions/15/related/1/label": "Logical Decoding Plugins", "/versions/15/sections/0/title": "Protocol context", "/versions/15/tables/0/rows/0/c2": "Identifies the message as a logical decoding message.", "/versions/15/tables/0/rows/1/c2": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2.", "/versions/15/tables/0/rows/2/c2": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional.", "/versions/15/tables/0/rows/3/c2": "The LSN of the logical decoding message.", "/versions/15/tables/0/rows/4/c1": "String", "/versions/15/tables/0/rows/4/c2": "The prefix of the logical decoding message.", "/versions/15/tables/0/rows/5/c2": "Length of the content.", "/versions/15/tables/0/rows/6/c1": "Byte n", "/versions/15/tables/0/rows/6/c2": "The content of the logical decoding message.", "/versions/15/sections/0/paragraphs/0": "This section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL interface or are sent by a walsender. In the case of a walsender, they are encapsulated inside replication protocol WAL messages as described in Section 55.4 , and generally obey the same message flow as physical replication. The following messages (Stream Start, Stream Stop, Stream Commit, and Stream Abort) are available since protocol version 2. The following messages (Begin Prepare, Prepare, Commit Prepared, Rollback Prepared, Stream Prepare) are available since protocol version 3. The following message parts are shared by the above messages.", "/versions/15/tables/0/columns/0/label": "Position", "/versions/15/tables/0/columns/1/label": "Format", "/versions/15/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "6371e48a79f462d8789b461ecf948d50e4339bb741b24044198cb28194741e13", "canonical_center_text_hash": "08b2aa17685e55bf783de3657269b19350174d2900d40b71e7309295b3f5925a"}, "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}]}, "comparison_hash": "e342b37109a65064e914f18c92934727892fb2c60c929fa2221ad41dfbb7dbb8", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "16": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "related": [{"url": "/docs/16/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=16", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sources": [{"url": "/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 16 English manual", "sha256": "23e3687e7c97c6a17a24684c30716fb7beed99c85967e828f4ee378effb5b50e"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "6714655eefc0d8a5ae9fb3f2feecde318b1f75eec1cfe075bf21b2f53fab59a7", "fragment_sha256": "597264620dfeb9426bd38ef3d442f03aa65dfe58164efb42a4d5e6d1c1759363", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "d18fdca8238e7d1ecdf09192166eee582fc205fa9fb9596def7a3784910c1ca9", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "facts_zh": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 55.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Message (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-message", "locale": "zh-Hans", "version": "16", "text_hash": "9f89f90e1a96090200eb50fc013409a15651ec3a4c633f27b24b3c779ddecb65", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "payload": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "6714655eefc0d8a5ae9fb3f2feecde318b1f75eec1cfe075bf21b2f53fab59a7", "fragment_sha256": "597264620dfeb9426bd38ef3d442f03aa65dfe58164efb42a4d5e6d1c1759363", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "d18fdca8238e7d1ecdf09192166eee582fc205fa9fb9596def7a3784910c1ca9", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 55.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('M')</span></dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span class=\"term\">Int32 (TransactionId)</span></dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span class=\"term\">Int8</span></dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span class=\"term\">Int64 (XLogRecPtr)</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span class=\"term\">String</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span class=\"term\">Int32</span></dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span class=\"term\">Byte<em class=\"replaceable\"><code>n</code></em></span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "version": "16", "link_map": {"/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE": "/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span></dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span></dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span></dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span></dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "96e24505f659c0322db6f3e238ef7f3dd7a13c4ac60e76cc59f755773e5a822c", "content_hash": "9f89f90e1a96090200eb50fc013409a15651ec3a4c633f27b24b3c779ddecb65", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "Message", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "description": ["Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"], "manual_html": "", "manual_path": "/docs/16/protocol-logicalrep-message-formats.html", "sections_zh": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 55.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/16/datatype-json.html", "method": "same-major semantic node", "sha256": "4d3ca6065016169a03abc9b3a57654fda5765ebb94074fa4eb578485f6807205", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/16/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "b98a7e935cf62dc4309fd748c65eb9da8632c9f58181232a5a6b3a3c28a295ec", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[9]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Logical replication Message format. Identifies the message as a logical decoding message.", "/versions/16/facts/0/label": "Layer", "/versions/16/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/16/facts/1/label": "First field", "/versions/16/tables/0/title": "Fields in documented order", "/versions/16/related/0/label": "Streaming replication protocol", "/versions/16/related/1/label": "Logical Decoding Plugins", "/versions/16/sections/0/title": "Protocol context", "/versions/16/tables/0/rows/0/c2": "Identifies the message as a logical decoding message.", "/versions/16/tables/0/rows/1/c2": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2.", "/versions/16/tables/0/rows/2/c2": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional.", "/versions/16/tables/0/rows/3/c2": "The LSN of the logical decoding message.", "/versions/16/tables/0/rows/4/c1": "String", "/versions/16/tables/0/rows/4/c2": "The prefix of the logical decoding message.", "/versions/16/tables/0/rows/5/c2": "Length of the content.", "/versions/16/tables/0/rows/6/c1": "Byte n", "/versions/16/tables/0/rows/6/c2": "The content of the logical decoding message.", "/versions/16/sections/0/paragraphs/0": "This section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL interface or are sent by a walsender. In the case of a walsender, they are encapsulated inside replication protocol WAL messages as described in Section 55.4 , and generally obey the same message flow as physical replication. The following messages (Stream Start, Stream Stop, Stream Commit, and Stream Abort) are available since protocol version 2. The following messages (Begin Prepare, Prepare, Commit Prepared, Rollback Prepared, Stream Prepare) are available since protocol version 3. The following message parts are shared by the above messages.", "/versions/16/tables/0/columns/0/label": "Position", "/versions/16/tables/0/columns/1/label": "Format", "/versions/16/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "cd58eafb4ee2d46dddb4f1f266b6585bfa87a90287f73f2ff9d269a26ff2e847", "canonical_center_text_hash": "9f89f90e1a96090200eb50fc013409a15651ec3a4c633f27b24b3c779ddecb65"}, "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}]}, "comparison_hash": "e342b37109a65064e914f18c92934727892fb2c60c929fa2221ad41dfbb7dbb8", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span></dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span></dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span></dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span></dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span></dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "17": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "related": [{"url": "/docs/17/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=17", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sources": [{"url": "/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 17 English manual", "sha256": "438b6a09f48bd0e9d2424559a0ab950dce44a9ab6573d362362c1c8d0b375fe3"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "d55723deabca8680c0d951fff4d1384efc23f6f164e69624531ad256b39ecad2", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "bdbebc9d83cab5f8465358bfc87478d60ffa1f3a412739cc8841671cf3e51e9e", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "facts_zh": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 53.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Message (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-message", "locale": "zh-Hans", "version": "17", "text_hash": "2cbb92d38790cde77c7a4e8c3ffe8ed0d22b1c5394ea31ae1abe00aafd823202", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "payload": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "d55723deabca8680c0d951fff4d1384efc23f6f164e69624531ad256b39ecad2", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "bdbebc9d83cab5f8465358bfc87478d60ffa1f3a412739cc8841671cf3e51e9e", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 53.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('M')</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span class=\"term\">Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span class=\"term\">Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span class=\"term\">Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span class=\"term\">String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span class=\"term\">Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span class=\"term\">Byte<em class=\"replaceable\"><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "version": "17", "link_map": {"/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE": "/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "14e9aa29246382a8620e4a1c4641a186ce6790dfbb2fe4b4fbd14df2bb721bd3", "content_hash": "2cbb92d38790cde77c7a4e8c3ffe8ed0d22b1c5394ea31ae1abe00aafd823202", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "Message", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "description": ["Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"], "manual_html": "", "manual_path": "/docs/17/protocol-logicalrep-message-formats.html", "sections_zh": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 53.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/17/datatype-json.html", "method": "same-major semantic node", "sha256": "8d2627b39aa9ad8449221de824f0c89af32197e8db7972fbc03b43dfcd0e9a93", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/17/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "79ce4e8bc85b402bb07edbfbe82b47cfd1d5e41a301bfbd1da8bac9c8526036c", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[9]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Logical replication Message format. Identifies the message as a logical decoding message.", "/versions/17/facts/0/label": "Layer", "/versions/17/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/17/facts/1/label": "First field", "/versions/17/tables/0/title": "Fields in documented order", "/versions/17/related/0/label": "Streaming replication protocol", "/versions/17/related/1/label": "Logical Decoding Plugins", "/versions/17/sections/0/title": "Protocol context", "/versions/17/tables/0/rows/0/c2": "Identifies the message as a logical decoding message.", "/versions/17/tables/0/rows/1/c2": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2.", "/versions/17/tables/0/rows/2/c2": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional.", "/versions/17/tables/0/rows/3/c2": "The LSN of the logical decoding message.", "/versions/17/tables/0/rows/4/c1": "String", "/versions/17/tables/0/rows/4/c2": "The prefix of the logical decoding message.", "/versions/17/tables/0/rows/5/c2": "Length of the content.", "/versions/17/tables/0/rows/6/c1": "Byte n", "/versions/17/tables/0/rows/6/c2": "The content of the logical decoding message.", "/versions/17/sections/0/paragraphs/0": "This section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL interface or are sent by a walsender. In the case of a walsender, they are encapsulated inside replication protocol WAL messages as described in Section 53.4 , and generally obey the same message flow as physical replication. The following messages (Stream Start, Stream Stop, Stream Commit, and Stream Abort) are available since protocol version 2. The following messages (Begin Prepare, Prepare, Commit Prepared, Rollback Prepared, Stream Prepare) are available since protocol version 3. The following message parts are shared by the above messages.", "/versions/17/tables/0/columns/0/label": "Position", "/versions/17/tables/0/columns/1/label": "Format", "/versions/17/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "7d3053ffeae1ff0086d6cc42ac64db3c04bfc89964f51b30cbb5996277255e7e", "canonical_center_text_hash": "2cbb92d38790cde77c7a4e8c3ffe8ed0d22b1c5394ea31ae1abe00aafd823202"}, "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}]}, "comparison_hash": "e342b37109a65064e914f18c92934727892fb2c60c929fa2221ad41dfbb7dbb8", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "18": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "related": [{"url": "/docs/18/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=18", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 18 English manual", "sha256": "e976b008206820fbeb1eba226e69bb7c00af157372c3545375d1b5053c76d0ad"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "9561d3a39aca911a61b68b188aa97828e60fb6f7d81323d8aada08fe67259039", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "ce8b49aaf58e3f8b225a0d9fa1b4da32c6635f8bdd95ac1d0c8995702a539295", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Message (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-message", "locale": "zh-Hans", "version": "18", "text_hash": "0361d940b85ca0fa9292fd6ef2c35306064c211ca7cf394c3aac2b6d5e06bd2f", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "9561d3a39aca911a61b68b188aa97828e60fb6f7d81323d8aada08fe67259039", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "ce8b49aaf58e3f8b225a0d9fa1b4da32c6635f8bdd95ac1d0c8995702a539295", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('M')</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span class=\"term\">Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span class=\"term\">Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span class=\"term\">Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span class=\"term\">String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span class=\"term\">Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span class=\"term\">Byte<em class=\"replaceable\"><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "version": "18", "link_map": {"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE": "/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "9cdbe3383ae9b5b5a1cf96a2d56f5f1d99a60b76d01399e67b8c67f0f41b805d", "content_hash": "0361d940b85ca0fa9292fd6ef2c35306064c211ca7cf394c3aac2b6d5e06bd2f", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "Message", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "description": ["Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"], "manual_html": "", "manual_path": "/docs/18/protocol-logicalrep-message-formats.html", "sections_zh": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/18/datatype-json.html", "method": "same-major semantic node", "sha256": "b9e8f98a0b5f2a4ec7b5197d02ab40c0ac0635a678c32728aaadd43cb4cd3766", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/18/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "61e6f991cfe7587d83d1c5e849d29aaaa85476953480ace0ec4dd00cbb25556b", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[9]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Logical replication Message format. Identifies the message as a logical decoding message.", "/versions/18/facts/0/label": "Layer", "/versions/18/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/18/facts/1/label": "First field", "/versions/18/tables/0/title": "Fields in documented order", "/versions/18/related/0/label": "Streaming replication protocol", "/versions/18/related/1/label": "Logical Decoding Plugins", "/versions/18/sections/0/title": "Protocol context", "/versions/18/tables/0/rows/0/c2": "Identifies the message as a logical decoding message.", "/versions/18/tables/0/rows/1/c2": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2.", "/versions/18/tables/0/rows/2/c2": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional.", "/versions/18/tables/0/rows/3/c2": "The LSN of the logical decoding message.", "/versions/18/tables/0/rows/4/c1": "String", "/versions/18/tables/0/rows/4/c2": "The prefix of the logical decoding message.", "/versions/18/tables/0/rows/5/c2": "Length of the content.", "/versions/18/tables/0/rows/6/c1": "Byte n", "/versions/18/tables/0/rows/6/c2": "The content of the logical decoding message.", "/versions/18/sections/0/paragraphs/0": "This section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL interface or are sent by a walsender. In the case of a walsender, they are encapsulated inside replication protocol WAL messages as described in Section 54.4 , and generally obey the same message flow as physical replication. The following messages (Stream Start, Stream Stop, Stream Commit, and Stream Abort) are available since protocol version 2. The following messages (Begin Prepare, Prepare, Commit Prepared, Rollback Prepared, Stream Prepare) are available since protocol version 3. The following message parts are shared by the above messages.", "/versions/18/tables/0/columns/0/label": "Position", "/versions/18/tables/0/columns/1/label": "Format", "/versions/18/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ae0b276504e3953085ffecd35698e70d8ed74f117afcd29eea802e1edd4b7d73", "canonical_center_text_hash": "0361d940b85ca0fa9292fd6ef2c35306064c211ca7cf394c3aac2b6d5e06bd2f"}, "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}]}, "comparison_hash": "e342b37109a65064e914f18c92934727892fb2c60c929fa2221ad41dfbb7dbb8", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1('M')</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "19": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "related": [{"url": "/docs/19/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=19", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "label": "19rc1", "major": "19", "channel": "preview", "revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sources": [{"url": "/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 19 English manual", "sha256": "19ebe2b279539d9b2571dd33e08c2247111f4d0bd06026edf7c595dddf0e61f3"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "e48e68a9eacc4279e4fe1ee1dca0feae8723d4b0276ff8e91a1d6e9862ccf9a8", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "ce4165c08bb6532b1fd8db3c0c02b428618dfbfef763f8e5afe83bcab3bdde0e", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "facts_zh": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Message (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-message", "locale": "zh-Hans", "version": "19", "text_hash": "96d49a9e24a7f737ff40a86d50b098ebb16fc5d167a9054ecaf114f09c7b110f", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "payload": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "e48e68a9eacc4279e4fe1ee1dca0feae8723d4b0276ff8e91a1d6e9862ccf9a8", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "ce4165c08bb6532b1fd8db3c0c02b428618dfbfef763f8e5afe83bcab3bdde0e", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('M')</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span class=\"term\">Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span class=\"term\">Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span class=\"term\">Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span class=\"term\">String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span class=\"term\">Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span class=\"term\">Byte<em class=\"replaceable\"><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "version": "19", "link_map": {"/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE": "/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "26ef069432ff5e1fca353178434b2b6efa97c4e78031c0a78ca633b0eb3086e9", "content_hash": "96d49a9e24a7f737ff40a86d50b098ebb16fc5d167a9054ecaf114f09c7b110f", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "Message", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "description": ["Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"], "manual_html": "", "manual_path": "/docs/19/protocol-logicalrep-message-formats.html", "sections_zh": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/19/datatype-json.html", "method": "same-major semantic node", "sha256": "3e9557f5a65838e08890f25b0cc62147ef278263efb1c2462b7906308771ae60", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/19/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "c07f8475fc626b1d9e9141b2d19f52d957197eac703966f99dd4b4da2556ac35", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[9]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Logical replication Message format. Identifies the message as a logical decoding message.", "/versions/19/facts/0/label": "Layer", "/versions/19/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/19/facts/1/label": "First field", "/versions/19/tables/0/title": "Fields in documented order", "/versions/19/related/0/label": "Streaming replication protocol", "/versions/19/related/1/label": "Logical Decoding Plugins", "/versions/19/sections/0/title": "Protocol context", "/versions/19/tables/0/rows/0/c2": "Identifies the message as a logical decoding message.", "/versions/19/tables/0/rows/1/c2": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2.", "/versions/19/tables/0/rows/2/c2": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional.", "/versions/19/tables/0/rows/3/c2": "The LSN of the logical decoding message.", "/versions/19/tables/0/rows/4/c1": "String", "/versions/19/tables/0/rows/4/c2": "The prefix of the logical decoding message.", "/versions/19/tables/0/rows/5/c2": "Length of the content.", "/versions/19/tables/0/rows/6/c1": "Byte n", "/versions/19/tables/0/rows/6/c2": "The content of the logical decoding message.", "/versions/19/sections/0/paragraphs/0": "This section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL interface or are sent by a walsender. In the case of a walsender, they are encapsulated inside replication protocol WAL messages as described in Section 54.4 , and generally obey the same message flow as physical replication. The following messages (Stream Start, Stream Stop, Stream Commit, and Stream Abort) are available since protocol version 2. The following messages (Begin Prepare, Prepare, Commit Prepared, Rollback Prepared, Stream Prepare) are available since protocol version 3. The following message parts are shared by the above messages.", "/versions/19/tables/0/columns/0/label": "Position", "/versions/19/tables/0/columns/1/label": "Format", "/versions/19/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "630bbe0849c45e892adfee2ebc4e8b4ad07fd9d9bf27b62453abe3d71e5b1578", "canonical_center_text_hash": "96d49a9e24a7f737ff40a86d50b098ebb16fc5d167a9054ecaf114f09c7b110f"}, "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}]}, "comparison_hash": "e342b37109a65064e914f18c92934727892fb2c60c929fa2221ad41dfbb7dbb8", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "entity membership and source-derived facts; presentation markup normalized", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "previous_source_revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}}, "20": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "related": [{"url": "/docs/devel/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=20", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sources": [{"url": "/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 20 English manual", "sha256": "af48408199b3864464bdf59e1254f8cff1408a08b9f026b2ecd938ec037e619b"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "ee9f065bac04e427aa62c1b3759121a1c161af496298de0bb03aef6e3000bc2b", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "b91ba2612c944dd37d2de6d2b77043f0ccbf84ac77ce813aa806717cb4942388", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "facts_zh": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Message (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-message", "locale": "zh-Hans", "version": "20", "text_hash": "37050c29323cf587cf81aab5d1224cdb938519f71b1b53a9bcd05ecb87d8e92f", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "payload": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "ee9f065bac04e427aa62c1b3759121a1c161af496298de0bb03aef6e3000bc2b", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "b91ba2612c944dd37d2de6d2b77043f0ccbf84ac77ce813aa806717cb4942388", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('M')</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span class=\"term\">Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span class=\"term\">Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span class=\"term\">Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span class=\"term\">String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span class=\"term\">Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span class=\"term\">Byte<em class=\"replaceable\"><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "version": "20", "link_map": {"/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE": "/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "c03812b1e1700cdaa82f37e0942569ac5aafa30b921a661ef537b16074a31851", "content_hash": "37050c29323cf587cf81aab5d1224cdb938519f71b1b53a9bcd05ecb87d8e92f", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "Message", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "description": ["Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"], "manual_html": "", "manual_path": "/docs/devel/protocol-logicalrep-message-formats.html", "sections_zh": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/devel/datatype-json.html", "method": "same-major semantic node", "sha256": "0bfc34c3ea3eb808f83865871c3fdad1265f64037c9a9aab3fecc96f1d1632d1", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/devel/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "0368c68a321a90f36ca5e51d25a0d378d562e7078aa5b6f40dbf868f40387542", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[9]"]}], "language": "zh", "original_text": {"/summary": "Logical replication Message format. Identifies the message as a logical decoding message.", "/category": "Logical replication formats", "/versions/20/description/0": "Logical replication Message format. Identifies the message as a logical decoding message.", "/versions/20/facts/0/label": "Layer", "/versions/20/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/20/facts/1/label": "First field", "/versions/20/tables/0/title": "Fields in documented order", "/versions/20/related/0/label": "Streaming replication protocol", "/versions/20/related/1/label": "Logical Decoding Plugins", "/versions/20/sections/0/title": "Protocol context", "/versions/20/tables/0/rows/0/c2": "Identifies the message as a logical decoding message.", "/versions/20/tables/0/rows/1/c2": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2.", "/versions/20/tables/0/rows/2/c2": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional.", "/versions/20/tables/0/rows/3/c2": "The LSN of the logical decoding message.", "/versions/20/tables/0/rows/4/c1": "String", "/versions/20/tables/0/rows/4/c2": "The prefix of the logical decoding message.", "/versions/20/tables/0/rows/5/c2": "Length of the content.", "/versions/20/tables/0/rows/6/c1": "Byte n", "/versions/20/tables/0/rows/6/c2": "The content of the logical decoding message.", "/versions/20/sections/0/paragraphs/0": "This section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL interface or are sent by a walsender. In the case of a walsender, they are encapsulated inside replication protocol WAL messages as described in Section 54.4 , and generally obey the same message flow as physical replication. The following messages (Stream Start, Stream Stop, Stream Commit, and Stream Abort) are available since protocol version 2. The following messages (Begin Prepare, Prepare, Commit Prepared, Rollback Prepared, Stream Prepare) are available since protocol version 3. The following message parts are shared by the above messages.", "/versions/20/tables/0/columns/0/label": "Position", "/versions/20/tables/0/columns/1/label": "Format", "/versions/20/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "57db3e782c5846379783854e04ac74f0c7b00d037b4219bdb48b65b564eef091", "canonical_center_text_hash": "37050c29323cf587cf81aab5d1224cdb938519f71b1b53a9bcd05ecb87d8e92f"}, "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}]}, "comparison_hash": "e342b37109a65064e914f18c92934727892fb2c60c929fa2221ad41dfbb7dbb8", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "entity membership and source-derived facts; presentation markup normalized", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "previous_source_revision": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}}}}, "snapshot": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "related": [{"url": "/docs/18/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=18", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 18 English manual", "sha256": "e976b008206820fbeb1eba226e69bb7c00af157372c3545375d1b5053c76d0ad"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "9561d3a39aca911a61b68b188aa97828e60fb6f7d81323d8aada08fe67259039", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "ce8b49aaf58e3f8b225a0d9fa1b4da32c6635f8bdd95ac1d0c8995702a539295", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Message (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-message", "locale": "zh-Hans", "version": "18", "text_hash": "0361d940b85ca0fa9292fd6ef2c35306064c211ca7cf394c3aac2b6d5e06bd2f", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u5c42\u6b21", "value": "\u903b\u8f91\u590d\u5236\u8f7d\u8377\uff0c\u4e0e\u524d\u540e\u7aef\u6d88\u606f\u5c01\u88c5\u5206\u5f00\u3002"}, {"label": "\u9996\u4e2a\u5b57\u6bb5", "value": "Byte1('M')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "9561d3a39aca911a61b68b188aa97828e60fb6f7d81323d8aada08fe67259039", "fragment_sha256": "d10861fdd318320079d5043fd35131a2df816daf03223da60b986c6dca4dd1cf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "ce8b49aaf58e3f8b225a0d9fa1b4da32c6635f8bdd95ac1d0c8995702a539295", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('M')</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span class=\"term\">Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span class=\"term\">Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span class=\"term\">Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span class=\"term\">String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span class=\"term\">Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span class=\"term\">Byte<em class=\"replaceable\"><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "version": "18", "link_map": {"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE": "/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "9cdbe3383ae9b5b5a1cf96a2d56f5f1d99a60b76d01399e67b8c67f0f41b805d", "content_hash": "0361d940b85ca0fa9292fd6ef2c35306064c211ca7cf394c3aac2b6d5e06bd2f", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "Message", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('M')", "c2": "\u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32 (TransactionId)", "c2": "\u4e8b\u52a1\u7684 XID\uff0c\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u4e8b\u52a1\u4e2d\u51fa\u73b0\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002"}, {"c0": "3", "c1": "Int8", "c2": "\u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002"}, {"c0": "4", "c1": "Int64 (XLogRecPtr)", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684LSN\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002"}, {"c0": "6", "c1": "Int32", "c2": "\u5185\u5bb9\u7684\u957f\u5ea6\u3002"}, {"c0": "7", "c1": "Byte n", "c2": "\u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"}], "title": "\u6309\u624b\u518c\u987a\u5e8f\u6392\u5217\u7684\u5b57\u6bb5", "columns": [{"key": "c0", "label": "\u4f4d\u7f6e"}, {"key": "c1", "label": "\u683c\u5f0f"}, {"key": "c2", "label": "\u542b\u4e49"}]}], "description": ["Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002"], "manual_html": "", "manual_path": "/docs/18/protocol-logicalrep-message-formats.html", "sections_zh": [{"title": "\u534f\u8bae\u4e0a\u4e0b\u6587", "paragraphs": ["\u672c\u8282\u8bf4\u660e\u5404\u903b\u8f91\u590d\u5236\u6d88\u606f\u7684\u8be6\u7ec6\u683c\u5f0f\u3002\u8fd9\u4e9b\u6d88\u606f\u7531\u590d\u5236\u69fd SQL \u63a5\u53e3\u8fd4\u56de\uff0c\u6216\u7531 walsender \u53d1\u9001\u3002\u7531 walsender \u53d1\u9001\u65f6\uff0c\u5b83\u4eec\u88ab\u5c01\u88c5\u5728\u590d\u5236\u534f\u8bae\u7684 WAL \u6d88\u606f\u4e2d\uff08\u53c2\u89c1\u7b2c 54.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002Stream Start\u3001Stream Stop\u3001Stream Commit \u548c Stream Abort \u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002Begin Prepare\u3001Prepare\u3001Commit Prepared\u3001Rollback Prepared \u548c Stream Prepare \u4ece\u534f\u8bae\u7248\u672c 3 \u8d77\u53ef\u7528\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/18/datatype-json.html", "method": "same-major semantic node", "sha256": "b9e8f98a0b5f2a4ec7b5197d02ab40c0ac0635a678c32728aaadd43cb4cd3766", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/18/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "61e6f991cfe7587d83d1c5e849d29aaaa85476953480ace0ec4dd00cbb25556b", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[3]/div[0]/dl[0]/dd[9]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Logical replication Message format. Identifies the message as a logical decoding message.", "/versions/18/facts/0/label": "Layer", "/versions/18/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/18/facts/1/label": "First field", "/versions/18/tables/0/title": "Fields in documented order", "/versions/18/related/0/label": "Streaming replication protocol", "/versions/18/related/1/label": "Logical Decoding Plugins", "/versions/18/sections/0/title": "Protocol context", "/versions/18/tables/0/rows/0/c2": "Identifies the message as a logical decoding message.", "/versions/18/tables/0/rows/1/c2": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2.", "/versions/18/tables/0/rows/2/c2": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional.", "/versions/18/tables/0/rows/3/c2": "The LSN of the logical decoding message.", "/versions/18/tables/0/rows/4/c1": "String", "/versions/18/tables/0/rows/4/c2": "The prefix of the logical decoding message.", "/versions/18/tables/0/rows/5/c2": "Length of the content.", "/versions/18/tables/0/rows/6/c1": "Byte n", "/versions/18/tables/0/rows/6/c2": "The content of the logical decoding message.", "/versions/18/sections/0/paragraphs/0": "This section describes the detailed format of each logical replication message. These messages are either returned by the replication slot SQL interface or are sent by a walsender. In the case of a walsender, they are encapsulated inside replication protocol WAL messages as described in Section 54.4 , and generally obey the same message flow as physical replication. The following messages (Stream Start, Stream Stop, Stream Commit, and Stream Abort) are available since protocol version 2. The following messages (Begin Prepare, Prepare, Commit Prepared, Rollback Prepared, Stream Prepare) are available since protocol version 3. The following message parts are shared by the above messages.", "/versions/18/tables/0/columns/0/label": "Position", "/versions/18/tables/0/columns/1/label": "Format", "/versions/18/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ae0b276504e3953085ffecd35698e70d8ed74f117afcd29eea802e1edd4b7d73", "canonical_center_text_hash": "0361d940b85ca0fa9292fd6ef2c35306064c211ca7cf394c3aac2b6d5e06bd2f"}, "description_zh": "Byte1('M') \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002 Int32 (TransactionId) \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002 Int8 \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002 Int64 (XLogRecPtr) \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002 String \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002 Int32 \u5185\u5bb9\u7684\u957f\u5ea6\u3002 Byte n \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('M')", "description": "Identifies the message as a logical decoding message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int8", "description": "Flags; Either 0 for no flags or 1 if the logical decoding message is transactional."}, {"format": "Int64 (XLogRecPtr)", "description": "The LSN of the logical decoding message."}, {"format": "String", "description": "The prefix of the logical decoding message."}, {"format": "Int32", "description": "Length of the content."}, {"format": "Byte n", "description": "The content of the logical decoding message."}]}, "comparison_hash": "e342b37109a65064e914f18c92934727892fb2c60c929fa2221ad41dfbb7dbb8", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;M&#39;)</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u534f\u8bae\u6d88\u606f Message\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1('M')</span> </dt><dd><p>\n         \u5c06\u6d88\u606f\u6807\u8bc6\u4e3a\u903b\u8f91\u89e3\u7801\u6d88\u606f\u3002\n        </p></dd><dt><span>Int32 (TransactionId)</span> </dt><dd><p>\n         \u4e8b\u52a1\u7684 Xid\uff08\u4ec5\u5728\u6d41\u5f0f\u4f20\u8f93\u7684\u4e8b\u52a1\u4e2d\u51fa\u73b0\uff09\u3002\u6b64\u5b57\u6bb5\u4ece\u534f\u8bae\u7248\u672c 2 \u8d77\u53ef\u7528\u3002\n        </p></dd><dt><span>Int8</span> </dt><dd><p>\n         \u6807\u5fd7\uff1a0 \u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b1 \u8868\u793a\u8be5\u903b\u8f91\u89e3\u7801\u6d88\u606f\u662f\u4e8b\u52a1\u6027\u7684\u3002\n        </p></dd><dt><span>Int64 (XLogRecPtr)</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684 LSN\u3002\n        </p></dd><dt><span>String</span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u524d\u7f00\u3002\n        </p></dd><dt><span>Int32</span> </dt><dd><p>\n         \u5185\u5bb9\u7684\u957f\u5ea6\u3002\n        </p></dd><dt><span>Byte<em><code>n</code></em></span> </dt><dd><p>\n         \u903b\u8f91\u89e3\u7801\u6d88\u606f\u7684\u5185\u5bb9\u3002\n        </p></dd></dl></div></dd><p><a href=\"/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-MESSAGE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}