{"kind": "protocol", "major": "18", "item": {"slug": "logical-update", "name": "Update (logical replication)", "name_zh": "", "category": "\u903b\u8f91\u590d\u5236\u683c\u5f0f", "summary": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "aliases": ["Update"], "content_hash": "a8bbf5703ce2b53d42ab2011ba208abb5b199919b5370fb5f5fb9c24faac511d", "versions": {"10": {"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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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/10/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=10", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.bz2", "label": "10.23", "major": "10", "channel": "stable", "revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sources": [{"url": "/docs/10/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 10 English manual", "sha256": "d59789e57fb3bfca55c805338f0883d2569b3a32490546294e2b60f3d8cd6d64"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/10/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "85acccfa2ac0156e833df9fb0c0c26a9a2749efb22e269071e32c25d5328cf39", "fragment_sha256": "b46a62b48e1f4277adda875f29e065fd5404680c6816bb9c121d915a44183a6f", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "c3f728187f04a08356fc89395913eb093ec75e5a6f2f11556fe272228bd99053", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "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('U')"}], "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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "10", "text_hash": "ad34b05307f890fbef348487d8ed2294b6adc6064c39cb23b9bc91264c32d976", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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/10/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "85acccfa2ac0156e833df9fb0c0c26a9a2749efb22e269071e32c25d5328cf39", "fragment_sha256": "b46a62b48e1f4277adda875f29e065fd5404680c6816bb9c121d915a44183a6f", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "c3f728187f04a08356fc89395913eb093ec75e5a6f2f11556fe272228bd99053", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('U')</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span class=\"term\">Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span class=\"term\">Byte1('K')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">Byte1('O')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">Byte1('N')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/10/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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "10", "link_map": {"/zh/docs/10/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS": "/docs/10/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span>Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/10/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": "6c5bfcd11fdbcd4ca2eed43bdb12f861214438f598f1f42f578d37e865daf105", "content_hash": "ad34b05307f890fbef348487d8ed2294b6adc6064c39cb23b9bc91264c32d976", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002"], "manual_html": "", "manual_path": "/docs/10/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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/10/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "935ad77169f47737b807201c7527e55f8066ab19677f8a4fdf96dc9b1add9c54", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[11]/div[0]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[11]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/p[1]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "Logical replication Update format. Identifies the message as an update message.", "/versions/10/facts/0/label": "Layer", "/versions/10/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/10/facts/1/label": "First field", "/versions/10/tables/0/title": "Fields in documented order", "/versions/10/related/0/label": "Streaming replication protocol", "/versions/10/related/1/label": "Logical Decoding Plugins", "/versions/10/sections/0/title": "Protocol context", "/versions/10/tables/0/rows/0/c2": "Identifies the message as an update message.", "/versions/10/tables/0/rows/1/c2": "ID of the relation corresponding to the ID in the relation message.", "/versions/10/tables/0/rows/2/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/10/tables/0/rows/3/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/10/tables/0/rows/4/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/10/tables/0/rows/5/c2": "Identifies the following TupleData message as a new tuple.", "/versions/10/tables/0/rows/6/c2": "TupleData message part representing the contents of a new tuple.", "/versions/10/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 52.4 and generally obey same message flow as physical replication. The following message parts are shared by the above messages.", "/versions/10/tables/0/columns/0/label": "Position", "/versions/10/tables/0/columns/1/label": "Format", "/versions/10/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "8e144f0e089a2705f6b1f93f8673e56b8d09ee42fc48f9bf5d6aae24be0ba84c", "canonical_center_text_hash": "ad34b05307f890fbef348487d8ed2294b6adc6064c39cb23b9bc91264c32d976"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "9b86a6eb794645ac06f40692ab2b1af21eb8531415143306bb50cf467fca43df", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span>Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/10/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>"}, "11": {"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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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/11/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=11", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "11.22", "major": "11", "channel": "stable", "revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sources": [{"url": "/docs/11/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 11 English manual", "sha256": "398afd7945b4d61facda275c78067baa3f49d65bfd2ca840fbe3074533403b62"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/11/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "abaa490a295a74b381e658fcdeb14b9995f6e71a8c56960bf638df56ac951e6f", "fragment_sha256": "2ee6e11b6c6ac8fae0b4691ac16217027782f9bf2b05ba704ac05a0c52a8ed9b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "d2f60004f4e827806a32b7c89f94f2ae10472722ba9cbdb30c3552513e55d982", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "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('U')"}], "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\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "11", "text_hash": "e8cd3232cf04f529623e9063336e5ee82231ac9871c4e2bae24d5df2ceb0091a", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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/11/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "abaa490a295a74b381e658fcdeb14b9995f6e71a8c56960bf638df56ac951e6f", "fragment_sha256": "2ee6e11b6c6ac8fae0b4691ac16217027782f9bf2b05ba704ac05a0c52a8ed9b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "d2f60004f4e827806a32b7c89f94f2ae10472722ba9cbdb30c3552513e55d982", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "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\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('U')</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span class=\"term\">Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span class=\"term\">Byte1('K')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">Byte1('O')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">Byte1('N')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/11/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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "11", "link_map": {"/zh/docs/11/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS": "/docs/11/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span>Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/11/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": "e9e47dd0687c2e736a6e38e6cba7b8eae82cb6b92d6192c85e0fd82414035483", "content_hash": "e8cd3232cf04f529623e9063336e5ee82231ac9871c4e2bae24d5df2ceb0091a", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002"], "manual_html": "", "manual_path": "/docs/11/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\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/11/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "1502e1ac89818f7f0ec32ee716932e8d38f364230bfa2343cc4d17bebd6b32d8", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[11]/div[0]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[11]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/p[1]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "Logical replication Update format. Identifies the message as an update message.", "/versions/11/facts/0/label": "Layer", "/versions/11/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/11/facts/1/label": "First field", "/versions/11/tables/0/title": "Fields in documented order", "/versions/11/related/0/label": "Streaming replication protocol", "/versions/11/related/1/label": "Logical Decoding Plugins", "/versions/11/sections/0/title": "Protocol context", "/versions/11/tables/0/rows/0/c2": "Identifies the message as an update message.", "/versions/11/tables/0/rows/1/c2": "ID of the relation corresponding to the ID in the relation message.", "/versions/11/tables/0/rows/2/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/11/tables/0/rows/3/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/11/tables/0/rows/4/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/11/tables/0/rows/5/c2": "Identifies the following TupleData message as a new tuple.", "/versions/11/tables/0/rows/6/c2": "TupleData message part representing the contents of a new tuple.", "/versions/11/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 message parts are shared by the above messages.", "/versions/11/tables/0/columns/0/label": "Position", "/versions/11/tables/0/columns/1/label": "Format", "/versions/11/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "89309e543deab5f23e91e1ba037664a7c59f0b7fe228fdae9d0a0dfef5e9e625", "canonical_center_text_hash": "e8cd3232cf04f529623e9063336e5ee82231ac9871c4e2bae24d5df2ceb0091a"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "9b86a6eb794645ac06f40692ab2b1af21eb8531415143306bb50cf467fca43df", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span>Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/11/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>"}, "12": {"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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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/12/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=12", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "12.22", "major": "12", "channel": "stable", "revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sources": [{"url": "/docs/12/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 12 English manual", "sha256": "8c2e615799c7af869e31164cdf7d82d5ec7526abfe0ec84a35c4553bc8b2e9dc"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/12/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "10e2005eeafe1db6d63889002a3a170a353f6ae694bc913a84a372d879dd52ed", "fragment_sha256": "2ee6e11b6c6ac8fae0b4691ac16217027782f9bf2b05ba704ac05a0c52a8ed9b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "437ce6727de80900d1e0519c428bc2fb9abdc323a05a3e9a237d95c2a7360d21", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "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('U')"}], "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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "12", "text_hash": "6d855f403b5ae52dcfe2e760157f6c29545e9d71cc8fb8cb3bf169fedbce43c3", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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/12/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "10e2005eeafe1db6d63889002a3a170a353f6ae694bc913a84a372d879dd52ed", "fragment_sha256": "2ee6e11b6c6ac8fae0b4691ac16217027782f9bf2b05ba704ac05a0c52a8ed9b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "437ce6727de80900d1e0519c428bc2fb9abdc323a05a3e9a237d95c2a7360d21", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('U')</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span class=\"term\">Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span class=\"term\">Byte1('K')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">Byte1('O')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">Byte1('N')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/12/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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "12", "link_map": {"/zh/docs/12/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS": "/docs/12/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span>Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/12/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": "f4866d4a387795941f084fafc144dee02892471dc9e60f4fa8bfaf7f5462183a", "content_hash": "6d855f403b5ae52dcfe2e760157f6c29545e9d71cc8fb8cb3bf169fedbce43c3", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002"], "manual_html": "", "manual_path": "/docs/12/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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/12/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "e0d2bb332fa91aefa7bb3dfe653f7cf69c01c6a2ebc5cd45c0901a6b82622aba", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[11]/div[0]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[11]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/p[1]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "Logical replication Update format. Identifies the message as an update message.", "/versions/12/facts/0/label": "Layer", "/versions/12/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/12/facts/1/label": "First field", "/versions/12/tables/0/title": "Fields in documented order", "/versions/12/related/0/label": "Streaming replication protocol", "/versions/12/related/1/label": "Logical Decoding Plugins", "/versions/12/sections/0/title": "Protocol context", "/versions/12/tables/0/rows/0/c2": "Identifies the message as an update message.", "/versions/12/tables/0/rows/1/c2": "ID of the relation corresponding to the ID in the relation message.", "/versions/12/tables/0/rows/2/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/12/tables/0/rows/3/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/12/tables/0/rows/4/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/12/tables/0/rows/5/c2": "Identifies the following TupleData message as a new tuple.", "/versions/12/tables/0/rows/6/c2": "TupleData message part representing the contents of a new tuple.", "/versions/12/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 52.4 and generally obey same message flow as physical replication. The following message parts are shared by the above messages.", "/versions/12/tables/0/columns/0/label": "Position", "/versions/12/tables/0/columns/1/label": "Format", "/versions/12/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "e25546b0c9ee94b165ceef533dbbf888a71af51a49656c949c58956756ea25f2", "canonical_center_text_hash": "6d855f403b5ae52dcfe2e760157f6c29545e9d71cc8fb8cb3bf169fedbce43c3"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "9b86a6eb794645ac06f40692ab2b1af21eb8531415143306bb50cf467fca43df", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span>Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/12/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>"}, "13": {"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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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/13/protocol-replication.html", "label": "\u6d41\u590d\u5236\u534f\u8bae"}, {"url": "/wiki/decode/?v=13", "label": "\u903b\u8f91\u89e3\u7801\u63d2\u4ef6"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "stable", "revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sources": [{"url": "/docs/13/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 13 English manual", "sha256": "c740d4c528ea137a87c0f9bf8ea8859fe6707c758374a12bc3c2390ac35427f1"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/13/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "84e5def9ba7f5e45de7d27968eb061840069e514f3e6a0155884758401fbfa5a", "fragment_sha256": "2ee6e11b6c6ac8fae0b4691ac16217027782f9bf2b05ba704ac05a0c52a8ed9b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "e6134af80f5ff8fbe9059701f7e8f33ac2d21b036460ed89b7ffdf64e9efd35a", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "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('U')"}], "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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "center_zh": {"title": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "13", "text_hash": "7ab78e1f6d606e6aa934571ad7e70483c6a84da548d531c64d34e1b30dde15ec", "collection": "protocol", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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/13/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "84e5def9ba7f5e45de7d27968eb061840069e514f3e6a0155884758401fbfa5a", "fragment_sha256": "2ee6e11b6c6ac8fae0b4691ac16217027782f9bf2b05ba704ac05a0c52a8ed9b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "e6134af80f5ff8fbe9059701f7e8f33ac2d21b036460ed89b7ffdf64e9efd35a", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\">Byte1('U')</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span class=\"term\">Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span class=\"term\">Byte1('K')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">Byte1('O')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span class=\"term\">Byte1('N')</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/13/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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "13", "link_map": {"/zh/docs/13/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS": "/docs/13/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span>Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/13/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": "9b39b70961b8ca9f7a93d677402edc662005968da481f6a7fa64a358ae228ddf", "content_hash": "7ab78e1f6d606e6aa934571ad7e70483c6a84da548d531c64d34e1b30dde15ec", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "3", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "4", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "7", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002"], "manual_html": "", "manual_path": "/docs/13/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 52.4 \u8282\uff09\uff0c\u6d88\u606f\u6d41\u7a0b\u901a\u5e38\u4e0e\u7269\u7406\u590d\u5236\u76f8\u540c\u3002\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\u4e3a\u4e0a\u8ff0\u6d88\u606f\u6240\u5171\u7528\u3002"]}], "localization": {"status": "complete", "sources": [{"url": "/docs/13/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "d24df4d4474ee2ae7498b6d12e1470629913220c9a51ed88fd07720f5b6f3499", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[11]/div[0]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[11]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/p[1]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "Logical replication Update format. Identifies the message as an update message.", "/versions/13/facts/0/label": "Layer", "/versions/13/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/13/facts/1/label": "First field", "/versions/13/tables/0/title": "Fields in documented order", "/versions/13/related/0/label": "Streaming replication protocol", "/versions/13/related/1/label": "Logical Decoding Plugins", "/versions/13/sections/0/title": "Protocol context", "/versions/13/tables/0/rows/0/c2": "Identifies the message as an update message.", "/versions/13/tables/0/rows/1/c2": "ID of the relation corresponding to the ID in the relation message.", "/versions/13/tables/0/rows/2/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/13/tables/0/rows/3/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/13/tables/0/rows/4/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/13/tables/0/rows/5/c2": "Identifies the following TupleData message as a new tuple.", "/versions/13/tables/0/rows/6/c2": "TupleData message part representing the contents of a new tuple.", "/versions/13/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 52.4 and generally obey same message flow as physical replication. The following message parts are shared by the above messages.", "/versions/13/tables/0/columns/0/label": "Position", "/versions/13/tables/0/columns/1/label": "Format", "/versions/13/tables/0/columns/2/label": "Meaning"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "39f0231469f335642eb8b520940b84a20209a4bf17427fd733eba84cb04266fa", "canonical_center_text_hash": "7ab78e1f6d606e6aa934571ad7e70483c6a84da548d531c64d34e1b30dde15ec"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "9b86a6eb794645ac06f40692ab2b1af21eb8531415143306bb50cf467fca43df", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n</p><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \u6d88\u606f\u3002</p></dd><dt><span>Int32</span></dt><dd><p>\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002</p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002</p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002</p></dd><dt><span>TupleData</span></dt><dd><p>\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002</p></dd></dl></div><p>\n</p><p>Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002</p></dd><p><a href=\"/zh/docs/13/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>"}, "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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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": "79b33ac663a7c37b408c061c9e58bd65d8892d29137b269975ad2bf23e285792", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "4148fc66553f306ca4cf0050ea06ae336b0bff3c2a92633e908b6b96d971bc31", "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('U')"}], "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": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "14", "text_hash": "f1d42542586f575247c11507450ce9616d1de166d1c8d8d7d5ef33e3f7b8a176", "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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": "79b33ac663a7c37b408c061c9e58bd65d8892d29137b269975ad2bf23e285792", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "4148fc66553f306ca4cf0050ea06ae336b0bff3c2a92633e908b6b96d971bc31", "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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\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('U')</span></dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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\">\n        Int32\n</span></dt><dd><p>\n         \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span class=\"term\">Byte1('K')</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('O')</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('N')</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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 Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>\n        Int32\n</span></dt><dd><p>\n         \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span></dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span></dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></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": "9cefd39157e1cd8381626a607f3646a20ac5a31ed0ef425ba71c69a1d353e13e", "content_hash": "f1d42542586f575247c11507450ce9616d1de166d1c8d8d7d5ef33e3f7b8a176", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32", "c2": "\u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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/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[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[15]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/p[1]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Logical replication Update format. Identifies the message as an update 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 an update 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": "ID of the relation corresponding to the ID in the relation message.", "/versions/14/tables/0/rows/3/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/14/tables/0/rows/4/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/14/tables/0/rows/5/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/14/tables/0/rows/6/c2": "Identifies the following TupleData message as a new tuple.", "/versions/14/tables/0/rows/7/c2": "TupleData message part representing the contents of a new tuple.", "/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": "1559480f171939d8ee7cf6bfb71817f8f1c4d8b0f271817610a46efba13b7a6e", "canonical_center_text_hash": "f1d42542586f575247c11507450ce9616d1de166d1c8d8d7d5ef33e3f7b8a176"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32", "description": "ID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "164d972b06aaa5013fbc9f29d9bccffc2b68082464ff1a30bf86d7a987433af3", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>\n        Int32\n</span></dt><dd><p>\n         \u5173\u7cfb\u7684 ID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span></dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span></dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "97daa9f092215830aa7163eee131ab5c67aa265ac4d57fb841d34ee0aff44823", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "a6843ca09d36677de3c28ab2e32e09d1e996b65311c5d15837d3e03c79657043", "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('U')"}], "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": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "15", "text_hash": "8abb00509983beb682fcde0f410f5426ae74bf0e44cce130f50c4774b197ed4f", "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "97daa9f092215830aa7163eee131ab5c67aa265ac4d57fb841d34ee0aff44823", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "a6843ca09d36677de3c28ab2e32e09d1e996b65311c5d15837d3e03c79657043", "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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\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('U')</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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\">Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span class=\"term\">Byte1('K')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('O')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('N')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "15", "link_map": {"/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE": "/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "5c72539c6c75de3f6ac6dc3f37c2ec5cca11bc6e2766b6fb11f69bb5770b0be9", "content_hash": "8abb00509983beb682fcde0f410f5426ae74bf0e44cce130f50c4774b197ed4f", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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/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[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[15]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/p[1]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Logical replication Update format. Identifies the message as an update 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 an update 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": "OID of the relation corresponding to the ID in the relation message.", "/versions/15/tables/0/rows/3/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/15/tables/0/rows/4/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/15/tables/0/rows/5/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/15/tables/0/rows/6/c2": "Identifies the following TupleData message as a new tuple.", "/versions/15/tables/0/rows/7/c2": "TupleData message part representing the contents of a new tuple.", "/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": "8c2fdd4a78b5e9430d0a50e7155c7584ddf8f990a7e8cb1170c7bc5aaf27e0c6", "canonical_center_text_hash": "8abb00509983beb682fcde0f410f5426ae74bf0e44cce130f50c4774b197ed4f"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "6b282d9719d73ff0de8c7d645b2d2b4c79ba39a71c6725c75afc058e06a40b77", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" 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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "6714655eefc0d8a5ae9fb3f2feecde318b1f75eec1cfe075bf21b2f53fab59a7", "fragment_sha256": "0afc0def8b8bdef609100b88973d0fa82a9c495c3e1b9f8f6fe2100944191fea", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "68847dea2cfe98193da195bd2c8ae0af7b1758ca578a5c00719a47e324114043", "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('U')"}], "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": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "16", "text_hash": "be5fbacb189abb10910428f8482f303a85a28f30cb85a4108c1916a61418f1b8", "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "6714655eefc0d8a5ae9fb3f2feecde318b1f75eec1cfe075bf21b2f53fab59a7", "fragment_sha256": "0afc0def8b8bdef609100b88973d0fa82a9c495c3e1b9f8f6fe2100944191fea", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "68847dea2cfe98193da195bd2c8ae0af7b1758ca578a5c00719a47e324114043", "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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\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('U')</span></dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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\">Int32 (Oid)</span></dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span class=\"term\">Byte1('K')</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('O')</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('N')</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span></dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "16", "link_map": {"/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE": "/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span></dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span></dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span></dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "2c9b7140ca07c839d1711fd90a9e9cc797ea550c5545ab35e272ef7090939acb", "content_hash": "be5fbacb189abb10910428f8482f303a85a28f30cb85a4108c1916a61418f1b8", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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/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[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[15]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/p[1]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Logical replication Update format. Identifies the message as an update 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 an update 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": "OID of the relation corresponding to the ID in the relation message.", "/versions/16/tables/0/rows/3/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/16/tables/0/rows/4/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/16/tables/0/rows/5/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/16/tables/0/rows/6/c2": "Identifies the following TupleData message as a new tuple.", "/versions/16/tables/0/rows/7/c2": "TupleData message part representing the contents of a new tuple.", "/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": "5370c658249e86d1e43f6feaef9c8d5f88ec023157b87da213db0e9906fafb8d", "canonical_center_text_hash": "be5fbacb189abb10910428f8482f303a85a28f30cb85a4108c1916a61418f1b8"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "6b282d9719d73ff0de8c7d645b2d2b4c79ba39a71c6725c75afc058e06a40b77", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span></dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span></dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span></dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span></dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span></dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" 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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "d55723deabca8680c0d951fff4d1384efc23f6f164e69624531ad256b39ecad2", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "9bfab723d8c76f258e5bae018a4592f7b122f73d77ca8c4b08c7ef5d8595d208", "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('U')"}], "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": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "17", "text_hash": "fa09c017334613d5f69b78fc69cd2436482c0b08772be87fb0fa8e9c8f4d61ab", "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "d55723deabca8680c0d951fff4d1384efc23f6f164e69624531ad256b39ecad2", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "9bfab723d8c76f258e5bae018a4592f7b122f73d77ca8c4b08c7ef5d8595d208", "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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\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('U')</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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\">Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span class=\"term\">Byte1('K')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('O')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('N')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "17", "link_map": {"/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE": "/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "a03de3d07c9f6bf9f3f535cea6ce726ae5529401e2b7340969833fc5cdebcf97", "content_hash": "fa09c017334613d5f69b78fc69cd2436482c0b08772be87fb0fa8e9c8f4d61ab", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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/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[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[15]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/p[1]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Logical replication Update format. Identifies the message as an update 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 an update 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": "OID of the relation corresponding to the ID in the relation message.", "/versions/17/tables/0/rows/3/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/17/tables/0/rows/4/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/17/tables/0/rows/5/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/17/tables/0/rows/6/c2": "Identifies the following TupleData message as a new tuple.", "/versions/17/tables/0/rows/7/c2": "TupleData message part representing the contents of a new tuple.", "/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": "4f670d0b34c07c356cf61e38a076e1700580e92c0ba61e61c84231f028b5c358", "canonical_center_text_hash": "fa09c017334613d5f69b78fc69cd2436482c0b08772be87fb0fa8e9c8f4d61ab"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "6b282d9719d73ff0de8c7d645b2d2b4c79ba39a71c6725c75afc058e06a40b77", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" 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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "9561d3a39aca911a61b68b188aa97828e60fb6f7d81323d8aada08fe67259039", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "816df256220b7949473b68e7ba472c30ef44633f4f844d4a3e213062e1023a65", "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('U')"}], "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": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "18", "text_hash": "2ee2ad7a2d842cd6df769158c40911381c861edc08dc03591281d99ad56b6de3", "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "9561d3a39aca911a61b68b188aa97828e60fb6f7d81323d8aada08fe67259039", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "816df256220b7949473b68e7ba472c30ef44633f4f844d4a3e213062e1023a65", "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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\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('U')</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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\">Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span class=\"term\">Byte1('K')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('O')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('N')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "18", "link_map": {"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE": "/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "326b14a5c526e39013c7acf0cf03d1e513783ba8820a5dd0f51f172e2468df35", "content_hash": "2ee2ad7a2d842cd6df769158c40911381c861edc08dc03591281d99ad56b6de3", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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/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[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[15]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/p[1]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Logical replication Update format. Identifies the message as an update 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 an update 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": "OID of the relation corresponding to the ID in the relation message.", "/versions/18/tables/0/rows/3/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/18/tables/0/rows/4/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/18/tables/0/rows/5/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/18/tables/0/rows/6/c2": "Identifies the following TupleData message as a new tuple.", "/versions/18/tables/0/rows/7/c2": "TupleData message part representing the contents of a new tuple.", "/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": "d64798b9b2477abd188955ead2ed46b7b424810dafab9490d674ea7ccfc69d27", "canonical_center_text_hash": "2ee2ad7a2d842cd6df769158c40911381c861edc08dc03591281d99ad56b6de3"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "6b282d9719d73ff0de8c7d645b2d2b4c79ba39a71c6725c75afc058e06a40b77", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" 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 Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1('U')</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1('K')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1('O')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1('N')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "e48e68a9eacc4279e4fe1ee1dca0feae8723d4b0276ff8e91a1d6e9862ccf9a8", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "78f016c7b0df60adaa9a93c297744729b74d7f77db9dc840ff580eb3519cf983", "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('U')"}], "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": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "19", "text_hash": "0689dc65621424e9f43b01c2249cea2021bd45dc515dc5c1619dd10faa2917a9", "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "e48e68a9eacc4279e4fe1ee1dca0feae8723d4b0276ff8e91a1d6e9862ccf9a8", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "78f016c7b0df60adaa9a93c297744729b74d7f77db9dc840ff580eb3519cf983", "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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\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('U')</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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\">Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span class=\"term\">Byte1('K')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('O')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('N')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "19", "link_map": {"/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE": "/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "1d6f8d7f6fc42d72840592c0818ae56bf92c533cf8ef3fee30de1df52d417589", "content_hash": "0689dc65621424e9f43b01c2249cea2021bd45dc515dc5c1619dd10faa2917a9", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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/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[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[15]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/p[1]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Logical replication Update format. Identifies the message as an update 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 an update 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": "OID of the relation corresponding to the ID in the relation message.", "/versions/19/tables/0/rows/3/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/19/tables/0/rows/4/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/19/tables/0/rows/5/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/19/tables/0/rows/6/c2": "Identifies the following TupleData message as a new tuple.", "/versions/19/tables/0/rows/7/c2": "TupleData message part representing the contents of a new tuple.", "/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": "7f76084722a00129fcf9d412040820dce195c5a0b02163e5c43a050f6e61e5be", "canonical_center_text_hash": "0689dc65621424e9f43b01c2249cea2021bd45dc515dc5c1619dd10faa2917a9"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "6b282d9719d73ff0de8c7d645b2d2b4c79ba39a71c6725c75afc058e06a40b77", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" 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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "ee9f065bac04e427aa62c1b3759121a1c161af496298de0bb03aef6e3000bc2b", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "fd5ad855bd42b377f921a5456b5809c9d523d8f9485bed9c54a9e85e767cbbf2", "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('U')"}], "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": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "20", "text_hash": "8ca2c1a4a1ff66cee4e4bc2ec548fb88579729ac5861d20249593fcc7fb64186", "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "ee9f065bac04e427aa62c1b3759121a1c161af496298de0bb03aef6e3000bc2b", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "fd5ad855bd42b377f921a5456b5809c9d523d8f9485bed9c54a9e85e767cbbf2", "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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\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('U')</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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\">Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span class=\"term\">Byte1('K')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('O')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('N')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "20", "link_map": {"/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE": "/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "4643330c1d61f93fa36c9c0b5161abb835c98b838ee78ab0133e8b6f4ed8907f", "content_hash": "8ca2c1a4a1ff66cee4e4bc2ec548fb88579729ac5861d20249593fcc7fb64186", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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/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[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[15]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/p[1]"]}], "language": "zh", "original_text": {"/summary": "Logical replication Update format. Identifies the message as an update message.", "/category": "Logical replication formats", "/versions/20/description/0": "Logical replication Update format. Identifies the message as an update 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 an update 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": "OID of the relation corresponding to the ID in the relation message.", "/versions/20/tables/0/rows/3/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/20/tables/0/rows/4/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/20/tables/0/rows/5/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/20/tables/0/rows/6/c2": "Identifies the following TupleData message as a new tuple.", "/versions/20/tables/0/rows/7/c2": "TupleData message part representing the contents of a new tuple.", "/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": "7568f51bb8dcb1198995f8b1b885dcdf42b68d709c23193378321fb8cb810002", "canonical_center_text_hash": "8ca2c1a4a1ff66cee4e4bc2ec548fb88579729ac5861d20249593fcc7fb64186"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "6b282d9719d73ff0de8c7d645b2d2b4c79ba39a71c6725c75afc058e06a40b77", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" 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('U')"}], "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "9561d3a39aca911a61b68b188aa97828e60fb6f7d81323d8aada08fe67259039", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "816df256220b7949473b68e7ba472c30ef44633f4f844d4a3e213062e1023a65", "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('U')"}], "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": "Update (logical replication)", "locale": "zh-Hans", "source": {"key": "logical-update", "locale": "zh-Hans", "version": "18", "text_hash": "2ee2ad7a2d842cd6df769158c40911381c861edc08dc03591281d99ad56b6de3", "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('U')"}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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-UPDATE", "anchor": "PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "protocol-logicalrep-message-formats.html", "extraction": "exact-definition", "source_hash": "9561d3a39aca911a61b68b188aa97828e60fb6f7d81323d8aada08fe67259039", "fragment_sha256": "d3d365de8fcc4f50868778cdd4ec34d3e0ad1b52b54e87260b492793f9d60f68", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "816df256220b7949473b68e7ba472c30ef44633f4f844d4a3e213062e1023a65", "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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\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('U')</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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\">Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span class=\"term\">Byte1('K')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('O')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span class=\"term\">Byte1('N')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span class=\"term\">TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "version": "18", "link_map": {"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE": "/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE"}, "body_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "326b14a5c526e39013c7acf0cf03d1e513783ba8820a5dd0f51f172e2468df35", "content_hash": "2ee2ad7a2d842cd6df769158c40911381c861edc08dc03591281d99ad56b6de3", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "Update", "tables_zh": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('U')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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": "Int32 (Oid)", "c2": "\u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002"}, {"c0": "4", "c1": "Byte1('K')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002"}, {"c0": "5", "c1": "Byte1('O')", "c2": "\u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002"}, {"c0": "6", "c1": "TupleData", "c2": "\u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002"}, {"c0": "7", "c1": "Byte1('N')", "c2": "\u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002"}, {"c0": "8", "c1": "TupleData", "c2": "\u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\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('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\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/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[13]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[13]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[15]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[15]/p[1]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Logical replication Update format. Identifies the message as an update 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 an update 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": "OID of the relation corresponding to the ID in the relation message.", "/versions/18/tables/0/rows/3/c2": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.", "/versions/18/tables/0/rows/4/c2": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.", "/versions/18/tables/0/rows/5/c2": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present.", "/versions/18/tables/0/rows/6/c2": "Identifies the following TupleData message as a new tuple.", "/versions/18/tables/0/rows/7/c2": "TupleData message part representing the contents of a new tuple.", "/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": "d64798b9b2477abd188955ead2ed46b7b424810dafab9490d674ea7ccfc69d27", "canonical_center_text_hash": "2ee2ad7a2d842cd6df769158c40911381c861edc08dc03591281d99ad56b6de3"}, "description_zh": "Byte1('U') \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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 Int32 (Oid) \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002 Byte1('K') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002 Byte1('O') \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002 TupleData \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002 Byte1('N') \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002 TupleData \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002 Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002", "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('U')", "description": "Identifies the message as an update message."}, {"format": "Int32 (TransactionId)", "description": "Xid of the transaction (only present for streamed transactions). This field is available since protocol version 2."}, {"format": "Int32 (Oid)", "description": "OID of the relation corresponding to the ID in the relation message."}, {"format": "Byte1('K')", "description": "Identifies the following TupleData submessage as a key. This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index."}, {"format": "Byte1('O')", "description": "Identifies the following TupleData submessage as an old tuple. This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL."}, {"format": "TupleData", "description": "TupleData message part representing the contents of the old tuple or primary key. Only present if the previous 'O' or 'K' part is present."}, {"format": "Byte1('N')", "description": "Identifies the following TupleData message as a new tuple."}, {"format": "TupleData", "description": "TupleData message part representing the contents of a new tuple."}]}, "comparison_hash": "6b282d9719d73ff0de8c7d645b2d2b4c79ba39a71c6725c75afc058e06a40b77", "manual_language": "zh", "description_zh_html": "<p>\u534f\u8bae\u6d88\u606f Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1(&#39;U&#39;)</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1(&#39;K&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;O&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684&#39;O&#39;\u6216&#39;K&#39;\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1(&#39;N&#39;)</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b &#39;K&#39; \u6d88\u606f\u90e8\u5206\u6216 &#39;O&#39; \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/zh/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\" 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 Update\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><div><dl><dt><span>Byte1('U')</span> </dt><dd><p>\n         \u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Update \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>Int32 (Oid)</span> </dt><dd><p>\n         \u5173\u7cfb\u7684 OID\uff0c\u4e0e Relation \u6d88\u606f\u4e2d\u7684 ID \u5bf9\u5e94\u3002\n        </p></dd><dt><span>Byte1('K')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u952e\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u66f4\u65b0\u66f4\u6539\u4e86\u5c5e\u4e8e REPLICA IDENTITY \u7d22\u5f15\u7684\u67d0\u4e00\u5217\u6216\u591a\u5217\u7684\u6570\u636e\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1('O')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u5b50\u6d88\u606f\u6807\u8bc6\u4e3a\u65e7\u5143\u7ec4\u3002\u6b64\u5b57\u6bb5\u53ef\u9009\uff0c\u4ec5\u5728\u53d1\u751f\u66f4\u65b0\u7684\u8868\u5c06 REPLICA IDENTITY \u8bbe\u4e3a FULL \u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65e7\u5143\u7ec4\u6216\u4e3b\u952e\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\u4ec5\u5728\u524d\u9762\u7684'O'\u6216'K'\u90e8\u5206\u5b58\u5728\u65f6\u51fa\u73b0\u3002\n        </p></dd><dt><span>Byte1('N')</span> </dt><dd><p>\n         \u5c06\u540e\u7eed TupleData \u6d88\u606f\u6807\u8bc6\u4e3a\u65b0\u5143\u7ec4\u3002\n        </p></dd><dt><span>TupleData</span> </dt><dd><p>\n         \u8868\u793a\u65b0\u5143\u7ec4\u5185\u5bb9\u7684 TupleData \u6d88\u606f\u90e8\u5206\u3002\n        </p></dd></dl></div><p>\n      Update \u6d88\u606f\u53ef\u4ee5\u5305\u542b 'K' \u6d88\u606f\u90e8\u5206\u6216 'O' \u6d88\u606f\u90e8\u5206\uff0c\u4e5f\u53ef\u4ee5\u4e24\u8005\u90fd\u4e0d\u5305\u542b\uff0c\u4f46\u7edd\u4e0d\u4f1a\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\n     </p></dd><p><a href=\"/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-UPDATE\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}