{"kind": "protocol", "major": "18", "item": {"slug": "logical-relation", "name": "Relation (logical replication)", "name_zh": "", "category": "\u903b\u8f91\u590d\u5236\u683c\u5f0f", "summary": "\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002", "aliases": ["Relation"], "content_hash": "0b5d5a51259a57f3fcf2062c08d1938d2296994e652760ac7a30d4ffa3dbf600", "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation message."}, {"format": "Int32", "description": "ID of the relation."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\u3002"}, {"c0": "3", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "5", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "6", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "7", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "8", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "9", "c1": "Int32", "c2": "\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002"}, {"c0": "10", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/10/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 10 English manual", "sha256": "d59789e57fb3bfca55c805338f0883d2569b3a32490546294e2b60f3d8cd6d64", "language": "en", "original_url": "/docs/10/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684 ID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u6bcf\u4e00\u5217\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/10/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/10/datatype-json.html", "method": "same-major semantic node", "sha256": "165b454cf9ff6825d21a4252844d43764fca541eafd0649170257d230e23425b", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[18]/pre[23]/em[4]/code[0]"]}, {"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[7]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/p[1]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "Logical replication Relation format. Identifies the message as a relation 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 a relation message.", "/versions/10/tables/0/rows/1/c2": "ID of the relation.", "/versions/10/tables/0/rows/2/c1": "String", "/versions/10/tables/0/rows/2/c2": "Namespace (empty string for pg_catalog ).", "/versions/10/tables/0/rows/3/c1": "String", "/versions/10/tables/0/rows/3/c2": "Relation name.", "/versions/10/tables/0/rows/4/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/10/tables/0/rows/5/c2": "Number of columns.", "/versions/10/tables/0/rows/6/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/10/tables/0/rows/7/c1": "String", "/versions/10/tables/0/rows/7/c2": "Name of the column.", "/versions/10/tables/0/rows/8/c2": "ID of the column's data type.", "/versions/10/tables/0/rows/9/c2": "Type modifier of the column ( atttypmod ).", "/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": "9c9628209a39bd7dd738698bc568f6fd08edbdd88b87c274398005af61e54763"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation message."}, {"format": "Int32", "description": "ID of the relation."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "579415e1a22e07102829a64c1e2dcb8d06d603318b2f4649bb60e3a702665ba3", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation message."}, {"format": "Int32", "description": "ID of the relation."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\u3002"}, {"c0": "3", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "5", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "6", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "7", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "8", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "9", "c1": "Int32", "c2": "\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002"}, {"c0": "10", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/11/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 11 English manual", "sha256": "398afd7945b4d61facda275c78067baa3f49d65bfd2ca840fbe3074533403b62", "language": "en", "original_url": "/docs/11/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684 ID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u6bcf\u4e00\u5217\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/11/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/11/datatype-json.html", "method": "same-major semantic node", "sha256": "e3239ad05fc4bad945529e631d9e5da84363b31e6e589461b97d69386cc43e7f", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[18]/pre[23]/em[4]/code[0]"]}, {"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[7]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/p[1]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "Logical replication Relation format. Identifies the message as a relation 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 a relation message.", "/versions/11/tables/0/rows/1/c2": "ID of the relation.", "/versions/11/tables/0/rows/2/c1": "String", "/versions/11/tables/0/rows/2/c2": "Namespace (empty string for pg_catalog ).", "/versions/11/tables/0/rows/3/c1": "String", "/versions/11/tables/0/rows/3/c2": "Relation name.", "/versions/11/tables/0/rows/4/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/11/tables/0/rows/5/c2": "Number of columns.", "/versions/11/tables/0/rows/6/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/11/tables/0/rows/7/c1": "String", "/versions/11/tables/0/rows/7/c2": "Name of the column.", "/versions/11/tables/0/rows/8/c2": "ID of the column's data type.", "/versions/11/tables/0/rows/9/c2": "Type modifier of the column ( atttypmod ).", "/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": "ca802cf55519b5c19f87b7c34b1f310dd5d18cf7704937457c8bedd73a833e86"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation message."}, {"format": "Int32", "description": "ID of the relation."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "579415e1a22e07102829a64c1e2dcb8d06d603318b2f4649bb60e3a702665ba3", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation message."}, {"format": "Int32", "description": "ID of the relation."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\u3002"}, {"c0": "3", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "5", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "6", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "7", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "8", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "9", "c1": "Int32", "c2": "\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002"}, {"c0": "10", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/12/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 12 English manual", "sha256": "8c2e615799c7af869e31164cdf7d82d5ec7526abfe0ec84a35c4553bc8b2e9dc", "language": "en", "original_url": "/docs/12/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684 ID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u6bcf\u5217\uff08\u751f\u6210\u5217\u9664\u5916\uff09\u90fd\u6709\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/12/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/12/datatype-json.html", "method": "same-major semantic node", "sha256": "5a46150e3fb4bd47dd2a421735d2e7672c4368f9209446b850d6adbf92d51b7e", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"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[7]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/p[1]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "Logical replication Relation format. Identifies the message as a relation 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 a relation message.", "/versions/12/tables/0/rows/1/c2": "ID of the relation.", "/versions/12/tables/0/rows/2/c1": "String", "/versions/12/tables/0/rows/2/c2": "Namespace (empty string for pg_catalog ).", "/versions/12/tables/0/rows/3/c1": "String", "/versions/12/tables/0/rows/3/c2": "Relation name.", "/versions/12/tables/0/rows/4/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/12/tables/0/rows/5/c2": "Number of columns.", "/versions/12/tables/0/rows/6/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/12/tables/0/rows/7/c1": "String", "/versions/12/tables/0/rows/7/c2": "Name of the column.", "/versions/12/tables/0/rows/8/c2": "ID of the column's data type.", "/versions/12/tables/0/rows/9/c2": "Type modifier of the column ( atttypmod ).", "/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": "78c7e41f1cc04b791eb8b4e28cb9897a849a39bcbaa5045988d0bbbc982c475b"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation message."}, {"format": "Int32", "description": "ID of the relation."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "579415e1a22e07102829a64c1e2dcb8d06d603318b2f4649bb60e3a702665ba3", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation message."}, {"format": "Int32", "description": "ID of the relation."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002"}, {"c0": "2", "c1": "Int32", "c2": "\u5173\u7cfb\u7684 ID\u3002"}, {"c0": "3", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "5", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "6", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "7", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "8", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "9", "c1": "Int32", "c2": "\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002"}, {"c0": "10", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/13/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 13 English manual", "sha256": "c740d4c528ea137a87c0f9bf8ea8859fe6707c758374a12bc3c2390ac35427f1", "language": "en", "original_url": "/docs/13/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684 ID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u6bcf\u5217\uff08\u751f\u6210\u5217\u9664\u5916\uff09\u90fd\u6709\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/13/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/13/datatype-json.html", "method": "same-major semantic node", "sha256": "4f40d591dd48f8b5cb58a4f0af9b824d2b0b6dee2132a6a010128e4f9b64184b", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"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[7]/div[0]/dl[0]/dd[11]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[7]/p[1]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "Logical replication Relation format. Identifies the message as a relation 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 a relation message.", "/versions/13/tables/0/rows/1/c2": "ID of the relation.", "/versions/13/tables/0/rows/2/c1": "String", "/versions/13/tables/0/rows/2/c2": "Namespace (empty string for pg_catalog ).", "/versions/13/tables/0/rows/3/c1": "String", "/versions/13/tables/0/rows/3/c2": "Relation name.", "/versions/13/tables/0/rows/4/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/13/tables/0/rows/5/c2": "Number of columns.", "/versions/13/tables/0/rows/6/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/13/tables/0/rows/7/c1": "String", "/versions/13/tables/0/rows/7/c2": "Name of the column.", "/versions/13/tables/0/rows/8/c2": "ID of the column's data type.", "/versions/13/tables/0/rows/9/c2": "Type modifier of the column ( atttypmod ).", "/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": "632ca98d588f29e838b196974b903cdb2111ab436b1e14beafa80b436ac8e4cc"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation message."}, {"format": "Int32", "description": "ID of the relation."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "579415e1a22e07102829a64c1e2dcb8d06d603318b2f4649bb60e3a702665ba3", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \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\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "6", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "7", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "8", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "9", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "10", "c1": "Int32", "c2": "\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002"}, {"c0": "11", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 14 English manual", "sha256": "4d5309e6070938fb53a3380c66fb64152d7984a368c86536d69ecac5bdb42852", "language": "en", "original_url": "/docs/14/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\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</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684 ID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u6bcf\u5217\uff08\u751f\u6210\u5217\u9664\u5916\uff09\u90fd\u6709\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6570\u636e\u7c7b\u578b ID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/14/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/14/datatype-json.html", "method": "same-major semantic node", "sha256": "6caaf22252a97833322c667923644122c2e880284c9f623b4ccbad4929b6ce66", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/14/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "974173f0c434aa608b0dfbb96fc5afa45dfb627cc50d3f630363d784f070e54d", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/p[1]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Logical replication Relation format. Identifies the message as a relation message.", "/versions/14/facts/0/label": "Layer", "/versions/14/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/14/facts/1/label": "First field", "/versions/14/tables/0/title": "Fields in documented order", "/versions/14/related/0/label": "Streaming replication protocol", "/versions/14/related/1/label": "Logical Decoding Plugins", "/versions/14/sections/0/title": "Protocol context", "/versions/14/tables/0/rows/0/c2": "Identifies the message as a relation 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.", "/versions/14/tables/0/rows/3/c1": "String", "/versions/14/tables/0/rows/3/c2": "Namespace (empty string for pg_catalog ).", "/versions/14/tables/0/rows/4/c1": "String", "/versions/14/tables/0/rows/4/c2": "Relation name.", "/versions/14/tables/0/rows/5/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/14/tables/0/rows/6/c2": "Number of columns.", "/versions/14/tables/0/rows/7/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/14/tables/0/rows/8/c1": "String", "/versions/14/tables/0/rows/8/c2": "Name of the column.", "/versions/14/tables/0/rows/9/c2": "ID of the column's data type.", "/versions/14/tables/0/rows/10/c2": "Type modifier of the column ( atttypmod ).", "/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": "176dbc5bf7d886c9ce00c0c20559a8282e907b9395f5498799d03efe0d0ec516"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32", "description": "ID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "004251a41968b87b3777593a97dffe6c4759e7b71745344eca481cea7e45cf4a", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \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\u7684OID\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "6", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "7", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "8", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "9", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "10", "c1": "Int32 (Oid)", "c2": "\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002"}, {"c0": "11", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 15 English manual", "sha256": "dce726e09e3bfedfcea89e211772f1afb48a00fd03f33fb94ce66e6d6e2938f5", "language": "en", "original_url": "/docs/15/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (TransactionId)</span></dt>\n<dd>\n<p lang=\"zh\">\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</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684OID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u53d1\u5e03\u4e2d\u5305\u542b\u7684\u6bcf\u4e00\u5217\uff08\u751f\u6210\u5217\u9664\u5916\uff09\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/15/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/15/datatype-json.html", "method": "same-major semantic node", "sha256": "1de5ac3fcff666e4a6ac070ff5320df19ce2a518ff29c894afc9071d51b938ff", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/15/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "55b157cac874170762ba43193ac136e49b632d59d2a691073af2f408a7e2b51c", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/p[1]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Logical replication Relation format. Identifies the message as a relation message.", "/versions/15/facts/0/label": "Layer", "/versions/15/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/15/facts/1/label": "First field", "/versions/15/tables/0/title": "Fields in documented order", "/versions/15/related/0/label": "Streaming replication protocol", "/versions/15/related/1/label": "Logical Decoding Plugins", "/versions/15/sections/0/title": "Protocol context", "/versions/15/tables/0/rows/0/c2": "Identifies the message as a relation 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.", "/versions/15/tables/0/rows/3/c1": "String", "/versions/15/tables/0/rows/3/c2": "Namespace (empty string for pg_catalog ).", "/versions/15/tables/0/rows/4/c1": "String", "/versions/15/tables/0/rows/4/c2": "Relation name.", "/versions/15/tables/0/rows/5/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/15/tables/0/rows/6/c2": "Number of columns.", "/versions/15/tables/0/rows/7/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/15/tables/0/rows/8/c1": "String", "/versions/15/tables/0/rows/8/c2": "Name of the column.", "/versions/15/tables/0/rows/9/c2": "OID of the column's data type.", "/versions/15/tables/0/rows/10/c2": "Type modifier of the column ( atttypmod ).", "/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": "2eb1da4c1d0996168f9db7244167c84355140c627b9b0be95e7f2b0f9ecc916e"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "e38e342bd63afe84c580ef245a7f6c70b95b32928e766a86e51f9732fd2569b4", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \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\u7684OID\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "6", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "7", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "8", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "9", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "10", "c1": "Int32 (Oid)", "c2": "\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002"}, {"c0": "11", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 16 English manual", "sha256": "23e3687e7c97c6a17a24684c30716fb7beed99c85967e828f4ee378effb5b50e", "language": "en", "original_url": "/docs/16/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (TransactionId)</span></dt>\n<dd>\n<p lang=\"zh\">\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</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684OID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u53d1\u5e03\u4e2d\u5305\u542b\u7684\u6bcf\u4e00\u5217\uff08\u751f\u6210\u5217\u9664\u5916\uff09\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/16/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/16/datatype-json.html", "method": "same-major semantic node", "sha256": "4d3ca6065016169a03abc9b3a57654fda5765ebb94074fa4eb578485f6807205", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/16/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "b98a7e935cf62dc4309fd748c65eb9da8632c9f58181232a5a6b3a3c28a295ec", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/p[1]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Logical replication Relation format. Identifies the message as a relation message.", "/versions/16/facts/0/label": "Layer", "/versions/16/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/16/facts/1/label": "First field", "/versions/16/tables/0/title": "Fields in documented order", "/versions/16/related/0/label": "Streaming replication protocol", "/versions/16/related/1/label": "Logical Decoding Plugins", "/versions/16/sections/0/title": "Protocol context", "/versions/16/tables/0/rows/0/c2": "Identifies the message as a relation 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.", "/versions/16/tables/0/rows/3/c1": "String", "/versions/16/tables/0/rows/3/c2": "Namespace (empty string for pg_catalog ).", "/versions/16/tables/0/rows/4/c1": "String", "/versions/16/tables/0/rows/4/c2": "Relation name.", "/versions/16/tables/0/rows/5/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/16/tables/0/rows/6/c2": "Number of columns.", "/versions/16/tables/0/rows/7/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/16/tables/0/rows/8/c1": "String", "/versions/16/tables/0/rows/8/c2": "Name of the column.", "/versions/16/tables/0/rows/9/c2": "OID of the column's data type.", "/versions/16/tables/0/rows/10/c2": "Type modifier of the column ( atttypmod ).", "/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": "b624506e383dc795788c7362987ab825068fb2d1fdfa0559cbcddf172c47de53"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "e38e342bd63afe84c580ef245a7f6c70b95b32928e766a86e51f9732fd2569b4", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \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\u7684OID\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "6", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "7", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "8", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "9", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "10", "c1": "Int32 (Oid)", "c2": "\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002"}, {"c0": "11", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 17 English manual", "sha256": "438b6a09f48bd0e9d2424559a0ab950dce44a9ab6573d362362c1c8d0b375fe3", "language": "en", "original_url": "/docs/17/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (TransactionId)</span></dt>\n<dd>\n<p lang=\"zh\">\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</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684OID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u53d1\u5e03\u4e2d\u5305\u542b\u7684\u6bcf\u4e00\u5217\uff08\u751f\u6210\u5217\u9664\u5916\uff09\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/17/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/17/datatype-json.html", "method": "same-major semantic node", "sha256": "8d2627b39aa9ad8449221de824f0c89af32197e8db7972fbc03b43dfcd0e9a93", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/17/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "79ce4e8bc85b402bb07edbfbe82b47cfd1d5e41a301bfbd1da8bac9c8526036c", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/p[1]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Logical replication Relation format. Identifies the message as a relation message.", "/versions/17/facts/0/label": "Layer", "/versions/17/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/17/facts/1/label": "First field", "/versions/17/tables/0/title": "Fields in documented order", "/versions/17/related/0/label": "Streaming replication protocol", "/versions/17/related/1/label": "Logical Decoding Plugins", "/versions/17/sections/0/title": "Protocol context", "/versions/17/tables/0/rows/0/c2": "Identifies the message as a relation 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.", "/versions/17/tables/0/rows/3/c1": "String", "/versions/17/tables/0/rows/3/c2": "Namespace (empty string for pg_catalog ).", "/versions/17/tables/0/rows/4/c1": "String", "/versions/17/tables/0/rows/4/c2": "Relation name.", "/versions/17/tables/0/rows/5/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/17/tables/0/rows/6/c2": "Number of columns.", "/versions/17/tables/0/rows/7/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/17/tables/0/rows/8/c1": "String", "/versions/17/tables/0/rows/8/c2": "Name of the column.", "/versions/17/tables/0/rows/9/c2": "OID of the column's data type.", "/versions/17/tables/0/rows/10/c2": "Type modifier of the column ( atttypmod ).", "/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": "511e520ddb91e58d77776bd9314334c1906b4c020e312f354d19df879d28623d"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "e38e342bd63afe84c580ef245a7f6c70b95b32928e766a86e51f9732fd2569b4", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \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\u7684OID\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "6", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "7", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "8", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "9", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "10", "c1": "Int32 (Oid)", "c2": "\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002"}, {"c0": "11", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 18 English manual", "sha256": "e976b008206820fbeb1eba226e69bb7c00af157372c3545375d1b5053c76d0ad", "language": "en", "original_url": "/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (TransactionId)</span></dt>\n<dd>\n<p lang=\"zh\">\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</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684OID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u53d1\u5e03\u4e2d\u5305\u542b\u7684\u6bcf\u4e00\u5217\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/18/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/18/datatype-json.html", "method": "same-major semantic node", "sha256": "b9e8f98a0b5f2a4ec7b5197d02ab40c0ac0635a678c32728aaadd43cb4cd3766", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/18/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "61e6f991cfe7587d83d1c5e849d29aaaa85476953480ace0ec4dd00cbb25556b", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/p[1]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Logical replication Relation format. Identifies the message as a relation message.", "/versions/18/facts/0/label": "Layer", "/versions/18/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/18/facts/1/label": "First field", "/versions/18/tables/0/title": "Fields in documented order", "/versions/18/related/0/label": "Streaming replication protocol", "/versions/18/related/1/label": "Logical Decoding Plugins", "/versions/18/sections/0/title": "Protocol context", "/versions/18/tables/0/rows/0/c2": "Identifies the message as a relation 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.", "/versions/18/tables/0/rows/3/c1": "String", "/versions/18/tables/0/rows/3/c2": "Namespace (empty string for pg_catalog ).", "/versions/18/tables/0/rows/4/c1": "String", "/versions/18/tables/0/rows/4/c2": "Relation name.", "/versions/18/tables/0/rows/5/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/18/tables/0/rows/6/c2": "Number of columns.", "/versions/18/tables/0/rows/7/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/18/tables/0/rows/8/c1": "String", "/versions/18/tables/0/rows/8/c2": "Name of the column.", "/versions/18/tables/0/rows/9/c2": "OID of the column's data type.", "/versions/18/tables/0/rows/10/c2": "Type modifier of the column ( atttypmod ).", "/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": "a244a80f635251b19eb4218503903807e805416e66ac492eda0e05e3956e9b84"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "e38e342bd63afe84c580ef245a7f6c70b95b32928e766a86e51f9732fd2569b4", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \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\u7684OID\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "6", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "7", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "8", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "9", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "10", "c1": "Int32 (Oid)", "c2": "\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002"}, {"c0": "11", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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/v19beta4/postgresql-19beta4.tar.bz2", "label": "19beta4", "major": "19", "channel": "preview", "revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}, "sources": [{"url": "https://pg.center/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 19 English manual", "sha256": "e09479de1e9cef5a4abc9703d423b68677f7f7e0e44c1098a2d37144980fd461", "language": "en", "original_url": "/docs/19/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (TransactionId)</span></dt>\n<dd>\n<p lang=\"zh\">\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</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684OID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u53d1\u5e03\u4e2d\u5305\u542b\u7684\u6bcf\u4e00\u5217\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/19/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/19/datatype-json.html", "method": "same-major semantic node", "sha256": "3e9557f5a65838e08890f25b0cc62147ef278263efb1c2462b7906308771ae60", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/19/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "c07f8475fc626b1d9e9141b2d19f52d957197eac703966f99dd4b4da2556ac35", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/p[1]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Logical replication Relation format. Identifies the message as a relation message.", "/versions/19/facts/0/label": "Layer", "/versions/19/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/19/facts/1/label": "First field", "/versions/19/tables/0/title": "Fields in documented order", "/versions/19/related/0/label": "Streaming replication protocol", "/versions/19/related/1/label": "Logical Decoding Plugins", "/versions/19/sections/0/title": "Protocol context", "/versions/19/tables/0/rows/0/c2": "Identifies the message as a relation 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.", "/versions/19/tables/0/rows/3/c1": "String", "/versions/19/tables/0/rows/3/c2": "Namespace (empty string for pg_catalog ).", "/versions/19/tables/0/rows/4/c1": "String", "/versions/19/tables/0/rows/4/c2": "Relation name.", "/versions/19/tables/0/rows/5/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/19/tables/0/rows/6/c2": "Number of columns.", "/versions/19/tables/0/rows/7/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/19/tables/0/rows/8/c1": "String", "/versions/19/tables/0/rows/8/c2": "Name of the column.", "/versions/19/tables/0/rows/9/c2": "OID of the column's data type.", "/versions/19/tables/0/rows/10/c2": "Type modifier of the column ( atttypmod ).", "/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": "e420a4fc044d257b683ee14711a115a22e8a3ed483efe5b854d80cc1b32cbe0c"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "e38e342bd63afe84c580ef245a7f6c70b95b32928e766a86e51f9732fd2569b4", "manual_language": "zh"}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \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\u7684OID\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "6", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "7", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "8", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "9", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "10", "c1": "Int32 (Oid)", "c2": "\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002"}, {"c0": "11", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}, "sources": [{"url": "https://pg.center/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 20 English manual", "sha256": "1c5d9d7ff344de5d066562bb12e9db460a51b7713932ca201856714fa9477238", "language": "en", "original_url": "/docs/devel/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (TransactionId)</span></dt>\n<dd>\n<p lang=\"zh\">\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</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684OID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u53d1\u5e03\u4e2d\u5305\u542b\u7684\u6bcf\u4e00\u5217\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/devel/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/devel/datatype-json.html", "method": "same-major semantic node", "sha256": "0bfc34c3ea3eb808f83865871c3fdad1265f64037c9a9aab3fecc96f1d1632d1", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/devel/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "0368c68a321a90f36ca5e51d25a0d378d562e7078aa5b6f40dbf868f40387542", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/p[1]"]}], "language": "zh", "original_text": {"/summary": "Logical replication Relation format. Identifies the message as a relation message.", "/category": "Logical replication formats", "/versions/20/description/0": "Logical replication Relation format. Identifies the message as a relation message.", "/versions/20/facts/0/label": "Layer", "/versions/20/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/20/facts/1/label": "First field", "/versions/20/tables/0/title": "Fields in documented order", "/versions/20/related/0/label": "Streaming replication protocol", "/versions/20/related/1/label": "Logical Decoding Plugins", "/versions/20/sections/0/title": "Protocol context", "/versions/20/tables/0/rows/0/c2": "Identifies the message as a relation 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.", "/versions/20/tables/0/rows/3/c1": "String", "/versions/20/tables/0/rows/3/c2": "Namespace (empty string for pg_catalog ).", "/versions/20/tables/0/rows/4/c1": "String", "/versions/20/tables/0/rows/4/c2": "Relation name.", "/versions/20/tables/0/rows/5/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/20/tables/0/rows/6/c2": "Number of columns.", "/versions/20/tables/0/rows/7/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/20/tables/0/rows/8/c1": "String", "/versions/20/tables/0/rows/8/c2": "Name of the column.", "/versions/20/tables/0/rows/9/c2": "OID of the column's data type.", "/versions/20/tables/0/rows/10/c2": "Type modifier of the column ( atttypmod ).", "/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": "79960696dd102d7460b0319538a0b937a258f8fd755afa458f45e40d4cec4504"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "e38e342bd63afe84c580ef245a7f6c70b95b32928e766a86e51f9732fd2569b4", "manual_language": "zh"}}}, "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('R')"}], "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}], "tables": [{"key": "fields", "rows": [{"c0": "1", "c1": "Byte1('R')", "c2": "\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \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\u7684OID\u3002"}, {"c0": "4", "c1": "\u5b57\u7b26\u4e32", "c2": "\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e pg_catalog \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002"}, {"c0": "5", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5173\u7cfb\u540d\u79f0\u3002"}, {"c0": "6", "c1": "Int8", "c2": "\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002"}, {"c0": "7", "c1": "Int16", "c2": "\u5217\u6570\u3002"}, {"c0": "8", "c1": "Int8", "c2": "\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002"}, {"c0": "9", "c1": "\u5b57\u7b26\u4e32", "c2": "\u5217\u7684\u540d\u79f0\u3002"}, {"c0": "10", "c1": "Int32 (Oid)", "c2": "\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002"}, {"c0": "11", "c1": "Int32", "c2": "\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08 atttypmod \uff09\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": "https://pg.center/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION", "path": "protocol-logicalrep-message-formats.html", "label": "PostgreSQL 18 English manual", "sha256": "e976b008206820fbeb1eba226e69bb7c00af157372c3545375d1b5053c76d0ad", "language": "en", "original_url": "/docs/18/protocol-logicalrep-message-formats.html#PROTOCOL-LOGICALREP-MESSAGE-FORMATS-RELATION"}], "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"]}], "signature": "Relation", "description": ["\u903b\u8f91\u590d\u5236 Relation \u683c\u5f0f\uff0c\u8868\u793a\u5173\u7cfb\u6d88\u606f\u3002"], "manual_html": "<dl><dd>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Byte1('R')</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c06\u8be5\u6d88\u606f\u6807\u8bc6\u4e3a Relation \u6d88\u606f\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (TransactionId)</span></dt>\n<dd>\n<p lang=\"zh\">\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</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u7684OID\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u547d\u540d\u7a7a\u95f4\uff08\u5bf9\u4e8e <code class=\"literal\">pg_catalog</code> \u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5173\u7cfb\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\u5173\u7cfb\u7684\u590d\u5236\u6807\u8bc6\u8bbe\u7f6e\uff0c\u4e0e pg_class \u4e2d\u7684 relreplident \u76f8\u540c\u3002</p>\n</dd>\n<dt><span class=\"term\">Int16</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\uff0c\u53d1\u5e03\u4e2d\u5305\u542b\u7684\u6bcf\u4e00\u5217\u90fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u6d88\u606f\u90e8\u5206\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\">Int8</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u6807\u5fd7\u3002\u76ee\u524d\u53ef\u4ee5\u4e3a 0\uff0c\u8868\u793a\u6ca1\u6709\u6807\u5fd7\uff1b\u6216\u4e3a 1\uff0c\u6807\u8bb0\u8be5\u5217\u662f\u952e\u7684\u4e00\u90e8\u5206\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\">\u5b57\u7b26\u4e32</dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u540d\u79f0\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32 (Oid)</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u6570\u636e\u7c7b\u578b\u7684OID\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\">Int32</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5217\u7684\u7c7b\u578b\u4fee\u9970\u7b26\uff08<code class=\"structfield\">atttypmod</code>\uff09\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd></dl>", "manual_path": "/docs/18/protocol-logicalrep-message-formats.html", "localization": {"status": "complete", "sources": [{"url": "/docs/18/datatype-json.html", "method": "same-major semantic node", "sha256": "b9e8f98a0b5f2a4ec7b5197d02ab40c0ac0635a678c32728aaadd43cb4cd3766", "language": "zh", "matched_nodes": ["#DATATYPE-JSON/div[19]/pre[27]/em[4]/code[0]"]}, {"url": "/docs/18/protocol-logicalrep-message-formats.html", "method": "same-major semantic node", "sha256": "61e6f991cfe7587d83d1c5e849d29aaaa85476953480ace0ec4dd00cbb25556b", "language": "zh", "matched_nodes": ["#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[13]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[0]/dl[0]/dd[9]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[1]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[3]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[5]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/div[2]/dl[0]/dd[7]", "#PROTOCOL-LOGICALREP-MESSAGE-FORMATS/div[2]/dl[0]/dd[9]/p[1]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Logical replication Relation format. Identifies the message as a relation message.", "/versions/18/facts/0/label": "Layer", "/versions/18/facts/0/value": "Logical replication payload; distinct from the frontend/backend message envelope", "/versions/18/facts/1/label": "First field", "/versions/18/tables/0/title": "Fields in documented order", "/versions/18/related/0/label": "Streaming replication protocol", "/versions/18/related/1/label": "Logical Decoding Plugins", "/versions/18/sections/0/title": "Protocol context", "/versions/18/tables/0/rows/0/c2": "Identifies the message as a relation 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.", "/versions/18/tables/0/rows/3/c1": "String", "/versions/18/tables/0/rows/3/c2": "Namespace (empty string for pg_catalog ).", "/versions/18/tables/0/rows/4/c1": "String", "/versions/18/tables/0/rows/4/c2": "Relation name.", "/versions/18/tables/0/rows/5/c2": "Replica identity setting for the relation (same as relreplident in pg_class ).", "/versions/18/tables/0/rows/6/c2": "Number of columns.", "/versions/18/tables/0/rows/7/c2": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key.", "/versions/18/tables/0/rows/8/c1": "String", "/versions/18/tables/0/rows/8/c2": "Name of the column.", "/versions/18/tables/0/rows/9/c2": "OID of the column's data type.", "/versions/18/tables/0/rows/10/c2": "Type modifier of the column ( atttypmod ).", "/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": "a244a80f635251b19eb4218503903807e805416e66ac492eda0e05e3956e9b84"}, "comparison_data": {"layer": "logical replication", "fields": [{"format": "Byte1('R')", "description": "Identifies the message as a relation 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."}, {"format": "String", "description": "Namespace (empty string for pg_catalog )."}, {"format": "String", "description": "Relation name."}, {"format": "Int8", "description": "Replica identity setting for the relation (same as relreplident in pg_class )."}, {"format": "Int16", "description": "Number of columns."}, {"format": "Int8", "description": "Flags for the column. Currently can be either 0 for no flags or 1 which marks the column as part of the key."}, {"format": "String", "description": "Name of the column."}, {"format": "Int32 (Oid)", "description": "OID of the column's data type."}, {"format": "Int32", "description": "Type modifier of the column ( atttypmod )."}]}, "comparison_hash": "e38e342bd63afe84c580ef245a7f6c70b95b32928e766a86e51f9732fd2569b4", "manual_language": "zh"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}