{"kind": "storage", "major": "18", "item": {"slug": "storage-toast", "name": "TOAST", "name_zh": "", "category": "\u7269\u7406\u7ed3\u6784", "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "aliases": [], "content_hash": "47d8ced08922e29e99adeb8528c5fdc25bf5e5df6c8f936dc0deb648bfc5687c", "versions": {"10": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/relopts/?v=10", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.bz2", "label": "10.23", "major": "10", "channel": "stable", "revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sources": [{"url": "/docs/10/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 10 English manual", "sha256": "5b9121265c5eec33a4c2118334e89f95325f456f8bda802b606665187654a23a"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/10/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "51ceed8c40021991f4dec32b53966195e543815c1ef21e1d820f8013505fdfee", "fragment_sha256": "584f2a79e180c65335a456e402b64c0179710535d7c391a5cc65025e9550ea70", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "ad65da8f16a41e5d447ffde38a24598f6a00f8d4b2dd8f6647ba9c3ecd164ddc", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "10", "text_hash": "e2f6421c70548816a1cd813606c37705f26aa5bb5ff4724659fe2ab39c4a3b2e", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/10/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "51ceed8c40021991f4dec32b53966195e543815c1ef21e1d820f8013505fdfee", "fragment_sha256": "584f2a79e180c65335a456e402b64c0179710535d7c391a5cc65025e9550ea70", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "ad65da8f16a41e5d447ffde38a24598f6a00f8d4b2dd8f6647ba9c3ecd164ddc", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.11.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002</p><p><span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002</p><p>\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/10/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a037.11.1\u00a0\u8282</a>\u3002\uff09</p><p><acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002</p><p><a href=\"/zh/docs/10/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.11.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "10", "link_map": {"/zh/docs/10/storage-toast.html": "/docs/10/storage-toast.html", "/zh/docs/10/xtypes.html#XTYPES-TOAST": "/docs/10/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002</p><p><span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002</p><p>\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/10/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a037.11.1\u00a0\u8282</a>\u3002\uff09</p><p><acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002</p><p><a href=\"/zh/docs/10/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "a7ad0533d11c81c22fb362eae3103fbf29e6f50998250a7d505aaf0282245838", "content_hash": "e2f6421c70548816a1cd813606c37705f26aa5bb5ff4724659fe2ab39c4a3b2e", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.11.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/10/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/10/storage-toast.html", "method": "same-major semantic node", "sha256": "6cc2465116d43f0e8ba4608a61dcc32449c0cc2d393c007b8f1680ad307e713b", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/10/facts/0/label": "Definition scope", "/versions/10/facts/0/value": "Same-version core physical storage documentation", "/versions/10/related/0/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "882612902588bb5ad441f7d636a6e715a0f79cd93fad6dd818ff39d0e6abb2bc", "canonical_center_text_hash": "e2f6421c70548816a1cd813606c37705f26aa5bb5ff4724659fe2ab39c4a3b2e"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.11.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002</p><p><span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002</p><p>\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/10/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a037.11.1\u00a0\u8282</a>\u3002\uff09</p><p><acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002</p><p><a href=\"/zh/docs/10/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "11": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/relopts/?v=11", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "11.22", "major": "11", "channel": "stable", "revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sources": [{"url": "/docs/11/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 11 English manual", "sha256": "461ebc6741983aff478a63132a4d7ce43b56e990b4cd31b28ccc6b2ecc9b3b06"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/11/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "94a06ec452d93354eba7092fa49cd2ca70f7975c2bf7017d7774a78d5b4fb32a", "fragment_sha256": "f5796d803d51e4cfd45cbb6fa528643e8324c1970d9921ebbb5180077dea4c7b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "cbeebb0254ee9001b0956d150770db80e5997ac8046349408550622c2962ac52", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "11", "text_hash": "819c8537337cca6c1a8bef766fa6a2b77bf0e0d829bfbdedc528f2e1fa5badb5", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/11/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "94a06ec452d93354eba7092fa49cd2ca70f7975c2bf7017d7774a78d5b4fb32a", "fragment_sha256": "f5796d803d51e4cfd45cbb6fa528643e8324c1970d9921ebbb5180077dea4c7b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "cbeebb0254ee9001b0956d150770db80e5997ac8046349408550622c2962ac52", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.12.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/11/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a038.12.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/11/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.12.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "11", "link_map": {"/zh/docs/11/storage-toast.html": "/docs/11/storage-toast.html", "/zh/docs/11/xtypes.html#XTYPES-TOAST": "/docs/11/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/11/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a038.12.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/11/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "b3380d22875be0dfbc3a05ff403e7f193c849db710ae17c1c888a1d18e55a6fb", "content_hash": "819c8537337cca6c1a8bef766fa6a2b77bf0e0d829bfbdedc528f2e1fa5badb5", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.12.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/11/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/11/storage-toast.html", "method": "same-major semantic node", "sha256": "4da5634b393b36ea734b6cc1b4f8cdc98fe8038e2c40f4d825ed62ec08827b38", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/11/facts/0/label": "Definition scope", "/versions/11/facts/0/value": "Same-version core physical storage documentation", "/versions/11/related/0/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "d06f562836ea6c4d2d366664fd70a65f952036d00a9c54be7c7e29ee1d177068", "canonical_center_text_hash": "819c8537337cca6c1a8bef766fa6a2b77bf0e0d829bfbdedc528f2e1fa5badb5"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.12.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/11/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a038.12.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/11/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "12": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=12", "label": "Table AM"}, {"url": "/wiki/relopts/?v=12", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "12.22", "major": "12", "channel": "stable", "revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sources": [{"url": "/docs/12/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 12 English manual", "sha256": "115a66459b1571221e820445a07bec3199f7141403c0a7a298d38e4fd1fe455d"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/12/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "81787f9f5c4d95f39be4db11074abd5374b5fabeca3ea0007ed1dd408042821d", "fragment_sha256": "ef0e9bbe3c7ad543af24084fee564c2ee9c492463cc217276e2d023227bc0844", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "5f16785834fe26a762b8f8649c9757140de4f904aee80e4ace7c455da9e5d54d", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "12", "text_hash": "ad02926a446cb9811de2985b48ca14a97d4964060635a45b2121070e8d9cbbc3", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/12/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "81787f9f5c4d95f39be4db11074abd5374b5fabeca3ea0007ed1dd408042821d", "fragment_sha256": "ef0e9bbe3c7ad543af24084fee564c2ee9c492463cc217276e2d023227bc0844", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "5f16785834fe26a762b8f8649c9757140de4f904aee80e4ace7c455da9e5d54d", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/12/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a037.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/12/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "12", "link_map": {"/zh/docs/12/storage-toast.html": "/docs/12/storage-toast.html", "/zh/docs/12/xtypes.html#XTYPES-TOAST": "/docs/12/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/12/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a037.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/12/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "0b193fc9a04f3a87b85a5f05442422cc605949a93e233743d7042d9ad27e362e", "content_hash": "ad02926a446cb9811de2985b48ca14a97d4964060635a45b2121070e8d9cbbc3", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/12/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/12/storage-toast.html", "method": "same-major semantic node", "sha256": "c480ede417778725fac61614a777fc01aed235b4da650c34bb56e8c29fc9116b", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/12/facts/0/label": "Definition scope", "/versions/12/facts/0/value": "Same-version core physical storage documentation", "/versions/12/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "876408ef1883dfc8d025c73351092e2587d7ee967e2a9e1633fe0ea4ba12b75d", "canonical_center_text_hash": "ad02926a446cb9811de2985b48ca14a97d4964060635a45b2121070e8d9cbbc3"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/12/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a037.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/12/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "13": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=13", "label": "Table AM"}, {"url": "/wiki/relopts/?v=13", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "stable", "revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sources": [{"url": "/docs/13/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 13 English manual", "sha256": "391f18eff17f4affd686e6be8d5f6a502d296dbbc4443e213370458b45efce96"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/13/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "81b49ba5f74e058c0c6ed83b3191807b94bede20457fded66d8f5161ce988fb2", "fragment_sha256": "61199b1390c7d48bf54c2ea1b90f859b277440c28217b8a58dfbd8021c4832fa", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "1193ed70761b1cb14fc16db25285f6b01f883f5dc10e52f286c73d46f52d0421", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "13", "text_hash": "5a11fc3946305857862ff3568128940fb9799a43a2d560a8bb88e22bea44577a", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/13/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "81b49ba5f74e058c0c6ed83b3191807b94bede20457fded66d8f5161ce988fb2", "fragment_sha256": "61199b1390c7d48bf54c2ea1b90f859b277440c28217b8a58dfbd8021c4832fa", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "1193ed70761b1cb14fc16db25285f6b01f883f5dc10e52f286c73d46f52d0421", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/13/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a037.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/13/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "13", "link_map": {"/zh/docs/13/storage-toast.html": "/docs/13/storage-toast.html", "/zh/docs/13/xtypes.html#XTYPES-TOAST": "/docs/13/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/13/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a037.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/13/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "c837a127d5ff814d1b4b9ff98a76606e4cfcd19b28155d4998167d7bdc0a5588", "content_hash": "5a11fc3946305857862ff3568128940fb9799a43a2d560a8bb88e22bea44577a", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/13/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/13/storage-toast.html", "method": "same-major semantic node", "sha256": "4c0338457dfd355109069059bd056875803f94ac48f44d458366c9c9c8812d34", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/13/facts/0/label": "Definition scope", "/versions/13/facts/0/value": "Same-version core physical storage documentation", "/versions/13/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "42a65fc108b6e4e2f7aed6b860d2e5133dcda58863b43e936358b5cf53ade8ac", "canonical_center_text_hash": "5a11fc3946305857862ff3568128940fb9799a43a2d560a8bb88e22bea44577a"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 37.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/13/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a037.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/13/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "14": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=14", "label": "Table AM"}, {"url": "/wiki/relopts/?v=14", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sources": [{"url": "/docs/14/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 14 English manual", "sha256": "783b4e8fac9b0a80625d25a8037930907ce2cca2900d7e9c061d850940c99f7e"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/14/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "bdf3ee872e7f69753e16f59c677202f9ccae182b9f8329ee58451d372c3d3965", "fragment_sha256": "932e2bdd88dd41e71e995ee06f0e20a311fc2e81cf3a66b0e4ff5df0226132be", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "98b99514a665bf4fe1dd3cf6b84360bd84a120171a9980246b33cd2e0b86c251", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "14", "text_hash": "5685b8937f13eebb052e9f524e39169bec15273f8a4316fe4759483df9354f50", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/14/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "bdf3ee872e7f69753e16f59c677202f9ccae182b9f8329ee58451d372c3d3965", "fragment_sha256": "932e2bdd88dd41e71e995ee06f0e20a311fc2e81cf3a66b0e4ff5df0226132be", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "98b99514a665bf4fe1dd3cf6b84360bd84a120171a9980246b33cd2e0b86c251", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/14/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/14/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "14", "link_map": {"/zh/docs/14/storage-toast.html": "/docs/14/storage-toast.html", "/zh/docs/14/xtypes.html#XTYPES-TOAST": "/docs/14/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/14/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/14/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "eb6b252190a037efb6bed6dfd1b4cb58b7850488622f64141f40d8510a3640cd", "content_hash": "5685b8937f13eebb052e9f524e39169bec15273f8a4316fe4759483df9354f50", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/14/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/14/storage-toast.html", "method": "same-major semantic node", "sha256": "31e501bf22fc64eaae657696bc46645a07537e4a17c3e1cc3f00f6102a845726", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/14/facts/0/label": "Definition scope", "/versions/14/facts/0/value": "Same-version core physical storage documentation", "/versions/14/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c19b83bfea63703f0b4a06a4580d9b304753a5882680ae11f071c7d9045a0336", "canonical_center_text_hash": "5685b8937f13eebb052e9f524e39169bec15273f8a4316fe4759483df9354f50"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/14/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/14/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "15": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=15", "label": "Table AM"}, {"url": "/wiki/relopts/?v=15", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sources": [{"url": "/docs/15/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 15 English manual", "sha256": "0f7eec53f41d4ebab1cdfbfa0286a58e5dea5f01b8006b57e6d7f2b7d23087f4"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/15/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "166c300da6c734562a0d749390b50599405edf07301f3241be0b46a32d707e4c", "fragment_sha256": "1f124d6cbf7fb194f85e084101ca28a9e374d543cbdaf98d0cc0a3c4599ccbe6", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "7a6359d0840823f5f38ca523640d563c8e03fc807a0e503f344d27d803c69bbc", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "15", "text_hash": "0b93a77bc23532aedc281f8efa6e37a2333dd7b3545f879252e6152b568740e0", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/15/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "166c300da6c734562a0d749390b50599405edf07301f3241be0b46a32d707e4c", "fragment_sha256": "1f124d6cbf7fb194f85e084101ca28a9e374d543cbdaf98d0cc0a3c4599ccbe6", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "7a6359d0840823f5f38ca523640d563c8e03fc807a0e503f344d27d803c69bbc", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/15/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/15/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "15", "link_map": {"/zh/docs/15/storage-toast.html": "/docs/15/storage-toast.html", "/zh/docs/15/xtypes.html#XTYPES-TOAST": "/docs/15/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/15/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/15/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "d83833b597c5decb16a47337588b0e8b7af979163b00d984120508d7a4f689f6", "content_hash": "0b93a77bc23532aedc281f8efa6e37a2333dd7b3545f879252e6152b568740e0", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/15/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/15/storage-toast.html", "method": "same-major semantic node", "sha256": "87dba80c8205b5973a513d476f981c2818288d81fe3bc1a3b6e20f955f5da0ce", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/15/facts/0/label": "Definition scope", "/versions/15/facts/0/value": "Same-version core physical storage documentation", "/versions/15/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "75c8c76de1b612eea8a694cd31d7586f5c2ade5062688654dad87b3c16b1dd90", "canonical_center_text_hash": "0b93a77bc23532aedc281f8efa6e37a2333dd7b3545f879252e6152b568740e0"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/15/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/15/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "16": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=16", "label": "Table AM"}, {"url": "/wiki/relopts/?v=16", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sources": [{"url": "/docs/16/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 16 English manual", "sha256": "64b89a5b903511938d799ec875ceeb9d740720f73c362640c8219d2e15ddb335"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/16/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "0bde0982a322788a8b53db21ea8b4f204abd02180ed87465d5084e66fcfc4802", "fragment_sha256": "ec769299bebe7df9332e1aea6c88d5ae8bc44c99c2de7a6491a38c93f4e623bd", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "c9d0e66bde486b464667fd4f993563e799a105565ba207efd5a0253c6eea27df", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "16", "text_hash": "794b0824c31047ef13b0ee2cefd51f4436359884a6fa08342d5567b0e9dff28b", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/16/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "0bde0982a322788a8b53db21ea8b4f204abd02180ed87465d5084e66fcfc4802", "fragment_sha256": "ec769299bebe7df9332e1aea6c88d5ae8bc44c99c2de7a6491a38c93f4e623bd", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "c9d0e66bde486b464667fd4f993563e799a105565ba207efd5a0253c6eea27df", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/16/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/16/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "16", "link_map": {"/zh/docs/16/storage-toast.html": "/docs/16/storage-toast.html", "/zh/docs/16/xtypes.html#XTYPES-TOAST": "/docs/16/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/16/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/16/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "70ceeed55de1fa4ec39dd3ecfdc354cebef9eb8bef3994699dca43d1b3dbb8dc", "content_hash": "794b0824c31047ef13b0ee2cefd51f4436359884a6fa08342d5567b0e9dff28b", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/16/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/16/storage-toast.html", "method": "same-major semantic node", "sha256": "2c614afa0a91cd0d0db3110367a3cf0300d93e72db4fd5ca359ad902eaf235c5", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/16/facts/0/label": "Definition scope", "/versions/16/facts/0/value": "Same-version core physical storage documentation", "/versions/16/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "0b4445c732028a5ab1e3a2b45016b7d4e9dfe24e5352f66fb3472e4e85d25ecb", "canonical_center_text_hash": "794b0824c31047ef13b0ee2cefd51f4436359884a6fa08342d5567b0e9dff28b"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 38.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/16/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a038.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/16/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "17": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=17", "label": "Table AM"}, {"url": "/wiki/relopts/?v=17", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sources": [{"url": "/docs/17/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 17 English manual", "sha256": "06251af26377523dbcc2b9164e5536c4c43bb7023869c147236f975c4069357a"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/17/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "ece1462d0871e18d41ab3582ffbef10988614bb17081ab4f7f20e920e18a0b70", "fragment_sha256": "dad0af6fbf3752fe3b1c624aa4ab8ff3e0e9341c85ece122fa52db4a2cf90bc7", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "2ade525374705e2dfcd708f04f48b7b61ab1843bc8ff7fa5c9bcbab658271d8a", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "17", "text_hash": "487bd97e1a32b749b2b72a81545d494905a6b22d0f0e0328f0e10ea9f31d10b3", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/17/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "ece1462d0871e18d41ab3582ffbef10988614bb17081ab4f7f20e920e18a0b70", "fragment_sha256": "dad0af6fbf3752fe3b1c624aa4ab8ff3e0e9341c85ece122fa52db4a2cf90bc7", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "2ade525374705e2dfcd708f04f48b7b61ab1843bc8ff7fa5c9bcbab658271d8a", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/17/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/17/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "17", "link_map": {"/zh/docs/17/storage-toast.html": "/docs/17/storage-toast.html", "/zh/docs/17/xtypes.html#XTYPES-TOAST": "/docs/17/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/17/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/17/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "90f51ded12ed2421257e2b4ab134e8ba10cbe7121c96a83d9acc818d9fec8068", "content_hash": "487bd97e1a32b749b2b72a81545d494905a6b22d0f0e0328f0e10ea9f31d10b3", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/17/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/17/storage-toast.html", "method": "same-major semantic node", "sha256": "84b3f044b3afcbbc127327cc037a31a48dae87a990a4c09912e0de902a2c26ea", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/17/facts/0/label": "Definition scope", "/versions/17/facts/0/value": "Same-version core physical storage documentation", "/versions/17/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "0106d69856307efba869844d15f17234cfcd4748c9b52e61348658ad97735db9", "canonical_center_text_hash": "487bd97e1a32b749b2b72a81545d494905a6b22d0f0e0328f0e10ea9f31d10b3"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/17/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/17/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "18": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=18", "label": "Table AM"}, {"url": "/wiki/relopts/?v=18", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "/docs/18/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 18 English manual", "sha256": "acf77f02dfcc808c3e24632ad05409f7f45f62773defd38453a433c15393df90"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "3935f1dbbda82ec808008d41c43fd71d2cfc64e5cadae86b68e182a61e4e5d05", "fragment_sha256": "ead2cc0b8ab9dd931de4582e088c7bf6ba3c630848339cbbc370a3ca85b832bf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "008ac8fa81eda8a169efda234039ae3bc72043952fd1093803daa3aed56ba544", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "18", "text_hash": "c3b170d74358fa9b263ed682f30832806e067e4c4a6b8e5c5dc42e85d48f014b", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "3935f1dbbda82ec808008d41c43fd71d2cfc64e5cadae86b68e182a61e4e5d05", "fragment_sha256": "ead2cc0b8ab9dd931de4582e088c7bf6ba3c630848339cbbc370a3ca85b832bf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "008ac8fa81eda8a169efda234039ae3bc72043952fd1093803daa3aed56ba544", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/18/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/18/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "18", "link_map": {"/zh/docs/18/storage-toast.html": "/docs/18/storage-toast.html", "/zh/docs/18/xtypes.html#XTYPES-TOAST": "/docs/18/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/18/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/18/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "38a35b29da79be85b7182390c34c824280ecb556790c8d4bdd938247977e5e39", "content_hash": "c3b170d74358fa9b263ed682f30832806e067e4c4a6b8e5c5dc42e85d48f014b", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/18/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/storage-toast.html", "method": "same-major semantic node", "sha256": "d65ec97abae68b1c03e4b3d8a512d8c04d0f32b09b5f5b59e5ec7bf146dd48c2", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/18/facts/0/label": "Definition scope", "/versions/18/facts/0/value": "Same-version core physical storage documentation", "/versions/18/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "40ed0a69ccc0d16b21eeb3f17acf4133d20a99fc89c0d1accf58296c981be1ee", "canonical_center_text_hash": "c3b170d74358fa9b263ed682f30832806e067e4c4a6b8e5c5dc42e85d48f014b"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/18/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/18/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08TOAST, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002TOAST\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/docs/18/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\nTOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\nTOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 TOAST\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/docs/18/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "19": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=19", "label": "Table AM"}, {"url": "/wiki/relopts/?v=19", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "label": "19rc1", "major": "19", "channel": "preview", "revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sources": [{"url": "/docs/19/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 19 English manual", "sha256": "6431e9f73b4ab47f2034e37b9a6ba50993197323ae5a2e708c30d58b11039643"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/19/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "e671b69d97e8b9e4c1a28ee46207f6b07323818618c600ce6f50243db070e5da", "fragment_sha256": "ae5de26134f945ce817d48497f6a26d54b164a90fab4b143f0fef5b15b07badd", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "603981571adbf114304b237920b19b90a4fa55bea3d88e43b41e178cd9a07d8c", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "19", "text_hash": "a4b0643ed59519ecd522387bde5c110809d73e4753325e41cd41581627c1ad6a", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/19/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "e671b69d97e8b9e4c1a28ee46207f6b07323818618c600ce6f50243db070e5da", "fragment_sha256": "ae5de26134f945ce817d48497f6a26d54b164a90fab4b143f0fef5b15b07badd", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "603981571adbf114304b237920b19b90a4fa55bea3d88e43b41e178cd9a07d8c", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/19/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/19/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "19", "link_map": {"/zh/docs/19/storage-toast.html": "/docs/19/storage-toast.html", "/zh/docs/19/xtypes.html#XTYPES-TOAST": "/docs/19/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/19/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/19/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "014842f43f14f02da0faf31f5608d5601ca0903456f400f90964fd1c415cc55c", "content_hash": "a4b0643ed59519ecd522387bde5c110809d73e4753325e41cd41581627c1ad6a", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/19/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/19/storage-toast.html", "method": "same-major semantic node", "sha256": "ec338e5f077ab4973036c9f0f5c8f6636e72d495c61046ae86b9d2f5f97ee6b1", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/19/facts/0/label": "Definition scope", "/versions/19/facts/0/value": "Same-version core physical storage documentation", "/versions/19/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "916899e97b81652987d694efd9d520b5d32810cc5f454fed65a2528dd57e5a0a", "canonical_center_text_hash": "a4b0643ed59519ecd522387bde5c110809d73e4753325e41cd41581627c1ad6a"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/19/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/19/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "entity membership and source-derived facts; presentation markup normalized", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "previous_source_revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}}, "20": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=20", "label": "Table AM"}, {"url": "/wiki/relopts/?v=20", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sources": [{"url": "/docs/devel/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 20 English manual", "sha256": "05e6c72607c71fe905329a12af1352e8e39034f754ea6b25fd9b71452fb9f123"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/devel/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "7c5125b6dd1a131fe13791c106130864bedf264973cf62df966ab340c55cd1ed", "fragment_sha256": "25915a6879dcb8757d86e604a158866f121cded8f68047431e463e9f5fad5999", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "51f6fa250ace8685c1ef593d88835f390a7357f2ac8b76a4c8b54aed7f35fe06", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "20", "text_hash": "9274408809dda7e9d107df8a4b01568d67761e791136db9d9c1f7479e0d38fcb", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/devel/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "7c5125b6dd1a131fe13791c106130864bedf264973cf62df966ab340c55cd1ed", "fragment_sha256": "25915a6879dcb8757d86e604a158866f121cded8f68047431e463e9f5fad5999", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "51f6fa250ace8685c1ef593d88835f390a7357f2ac8b76a4c8b54aed7f35fe06", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/devel/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/devel/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "20", "link_map": {"/zh/docs/devel/storage-toast.html": "/docs/devel/storage-toast.html", "/zh/docs/devel/xtypes.html#XTYPES-TOAST": "/docs/devel/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/devel/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/devel/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "b660ff7c3a7c29ca22ba5657b017b7d7cfe09e9c5c8f1143c1ca9657e2814163", "content_hash": "9274408809dda7e9d107df8a4b01568d67761e791136db9d9c1f7479e0d38fcb", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/devel/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/devel/storage-toast.html", "method": "same-major semantic node", "sha256": "d15c5a9cc7350e6d6dad9001e604c191cb67fdda6697b62410039d0149def455", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/summary": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/category": "Physical structures", "/versions/20/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/20/facts/0/label": "Definition scope", "/versions/20/facts/0/value": "Same-version core physical storage documentation", "/versions/20/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "a64c888ca3a5f939d1d5063d6f2e874a2c54136613b92c047ed2a1e83ad329b2", "canonical_center_text_hash": "9274408809dda7e9d107df8a4b01568d67761e791136db9d9c1f7479e0d38fcb"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/devel/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/devel/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "entity membership and source-derived facts; presentation markup normalized", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "previous_source_revision": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}}}}, "snapshot": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "related": [{"url": "/wiki/tableam/?v=18", "label": "Table AM"}, {"url": "/wiki/relopts/?v=18", "label": "\u5b58\u50a8\u53c2\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "/docs/18/storage-toast.html", "path": "storage-toast.html", "label": "PostgreSQL 18 English manual", "sha256": "acf77f02dfcc808c3e24632ad05409f7f45f62773defd38453a433c15393df90"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "3935f1dbbda82ec808008d41c43fd71d2cfc64e5cadae86b68e182a61e4e5d05", "fragment_sha256": "ead2cc0b8ab9dd931de4582e088c7bf6ba3c630848339cbbc370a3ca85b832bf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "008ac8fa81eda8a169efda234039ae3bc72043952fd1093803daa3aed56ba544", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "sections": [], "center_zh": {"title": "TOAST", "locale": "zh-Hans", "source": {"key": "storage-toast", "locale": "zh-Hans", "version": "18", "text_hash": "c3b170d74358fa9b263ed682f30832806e067e4c4a6b8e5c5dc42e85d48f014b", "collection": "storage", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/storage-toast.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "storage-toast.html", "extraction": "concept-introduction", "source_hash": "3935f1dbbda82ec808008d41c43fd71d2cfc64e5cadae86b68e182a61e4e5d05", "fragment_sha256": "ead2cc0b8ab9dd931de4582e088c7bf6ba3c630848339cbbc370a3ca85b832bf", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "008ac8fa81eda8a169efda234039ae3bc72043952fd1093803daa3aed56ba544", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym class=\"acronym\">TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym class=\"acronym\">TOAST</acronym>\uff08\u6216\u8005<span class=\"quote\">\u201c<span class=\"quote\">\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym class=\"acronym\">TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym class=\"acronym\">TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em class=\"firstterm\">varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym class=\"acronym\">TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em class=\"firstterm\">\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em class=\"firstterm\">\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code class=\"function\">PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a class=\"xref\" href=\"/zh/docs/18/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym class=\"acronym\">TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym class=\"acronym\">TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym class=\"acronym\">TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em class=\"firstterm\">TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym class=\"acronym\">TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/18/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "version": "18", "link_map": {"/zh/docs/18/storage-toast.html": "/docs/18/storage-toast.html", "/zh/docs/18/xtypes.html#XTYPES-TOAST": "/docs/18/xtypes.html#XTYPES-TOAST"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/18/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/18/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "38a35b29da79be85b7182390c34c824280ecb556790c8d4bdd938247977e5e39", "content_hash": "c3b170d74358fa9b263ed682f30832806e067e4c4a6b8e5c5dc42e85d48f014b", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [], "description": ["\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e"], "manual_html": "", "manual_path": "/docs/18/storage-toast.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/storage-toast.html", "method": "same-major semantic node", "sha256": "d65ec97abae68b1c03e4b3d8a512d8c04d0f32b09b5f5b59e5ec7bf146dd48c2", "language": "zh", "matched_nodes": ["#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[2]", "#STORAGE-TOAST/div[10]/div[5]/ul[0]/li[3]", "#STORAGE-TOAST/div[10]/p[3]", "#STORAGE-TOAST/div[10]/p[7]", "#STORAGE-TOAST/div[11]/p[1]", "#STORAGE-TOAST/div[11]/p[2]", "#STORAGE-TOAST/div[11]/p[3]", "#STORAGE-TOAST/div[11]/p[4]", "#STORAGE-TOAST/div[11]/p[5]", "#STORAGE-TOAST/div[1]/dl[0]/dt[0]", "#STORAGE-TOAST/div[1]/dl[0]/dt[1]", "#STORAGE-TOAST/p[4]", "#STORAGE-TOAST/p[5]", "#STORAGE-TOAST/p[8]", "#STORAGE-TOAST/p[9]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).", "/versions/18/facts/0/label": "Definition scope", "/versions/18/facts/0/value": "Same-version core physical storage documentation", "/versions/18/related/1/label": "Storage Parameters"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "40ed0a69ccc0d16b21eeb3f17acf4133d20a99fc89c0d1accf58296c981be1ee", "canonical_center_text_hash": "c3b170d74358fa9b263ed682f30832806e067e4c4a6b8e5c5dc42e85d48f014b"}, "description_zh": "\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08 TOAST , The Oversized-Attribute Storage Technique\uff09\u3002 PostgreSQL \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST \uff08\u6216\u8005 \u201c \u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f \u201d \uff09\u3002 TOAST \u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002 \u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST \uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST \uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08 varlena \uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002 TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a \u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c \u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684 C \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab \u53bb TOAST \u5316 \u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 PG_DETOAST_DATUM \uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1 \u7b2c 36.13.1 \u8282 \u3002\uff09 TOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef TOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082 30 - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e", "comparison_data": {"layouts": []}, "comparison_hash": "27341929154bfb55531f03501322b65af719c5561f3c4ddc9528a14aa4df69b5", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08<acronym>TOAST</acronym>, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a <acronym>TOAST</acronym>\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002<acronym>TOAST</acronym>\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 <acronym>TOAST</acronym>\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002<acronym>TOAST</acronym> \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef <acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 <acronym>TOAST</acronym> \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/zh/docs/18/xtypes.html#XTYPES-TOAST\" rel=\"nofollow\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\n<acronym>TOAST</acronym> \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\n<acronym>TOAST</acronym> \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf <acronym>TOAST</acronym> \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 <acronym>TOAST</acronym>\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/zh/docs/18/storage-toast.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u5b58\u50a8\u7ed3\u6784 storage-toast\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u6982\u8ff0\u8d85\u957f\u5c5e\u6027\u5b58\u50a8\u6280\u672f\uff08TOAST, The\nOversized-Attribute Storage Technique\uff09\u3002\n</p><p>\n<span>PostgreSQL</span> \u4f7f\u7528\u56fa\u5b9a\u9875\u9762\u5927\u5c0f\uff08\u901a\u5e38\u4e3a 8 kB\uff09\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u5143\u7ec4\u8de8\u8d8a\u591a\u4e2a\u9875\u9762\u3002\u56e0\u6b64\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b58\u50a8\u975e\u5e38\u5927\u7684\u5b57\u6bb5\u503c\u3002\u4e3a\u514b\u670d\u8fd9\u4e00\u9650\u5236\uff0c\u5927\u5b57\u6bb5\u503c\u4f1a\u88ab\u538b\u7f29\u5e76\u4e14/\u6216\u8005\u62c6\u5206\u6210\u591a\u4e2a\u7269\u7406\u884c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u800c\u4e14\u5bf9\u5927\u90e8\u5206\u540e\u7aef\u4ee3\u7801\u7684\u5f71\u54cd\u5f88\u5c0f\u3002\u8fd9\u9879\u6280\u672f\u88ab\u4eb2\u5207\u5730\u79f0\u4e3a TOAST\uff08\u6216\u8005<span>\u201c<span>\u81ea\u5207\u7247\u9762\u5305\u95ee\u4e16\u4ee5\u6765\u6700\u68d2\u7684\u4e1c\u897f</span>\u201d</span>\uff09\u3002TOAST\n\u57fa\u7840\u8bbe\u65bd\u4e5f\u88ab\u7528\u4e8e\u6539\u8fdb\u5185\u5b58\u4e2d\u5927\u578b\u6570\u636e\u503c\u7684\u5904\u7406\u3002\n</p><p>\n\u53ea\u6709\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u652f\u6301 TOAST\uff0c\u56e0\u4e3a\u6ca1\u6709\u5fc5\u8981\u8ba9\u90a3\u4e9b\u4e0d\u53ef\u80fd\u4ea7\u751f\u5927\u5b57\u6bb5\u503c\u7684\u6570\u636e\u7c7b\u578b\u627f\u62c5\u8fd9\u90e8\u5206\u989d\u5916\u5f00\u9500\u3002\u8981\u652f\u6301 TOAST\uff0c\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u5177\u6709\u53d8\u957f\uff08<em>varlena</em>\uff09\u8868\u793a\u5f62\u5f0f\uff0c\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u5df2\u5b58\u50a8\u503c\u7684\u7b2c\u4e00\u4e2a\u56db\u5b57\u8282\u5b57\u90fd\u5305\u542b\u8be5\u503c\u4ee5\u5b57\u8282\u8ba1\u7684\u603b\u957f\u5ea6\uff08\u5305\u62ec\u5176\u81ea\u8eab\uff09\u3002TOAST \u5bf9\u8be5\u6570\u636e\u7c7b\u578b\u8868\u793a\u5f62\u5f0f\u7684\u5176\u4f59\u90e8\u5206\u6ca1\u6709\u7ea6\u675f\u3002\u7edf\u79f0\u4e3a<em>\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u503c</em>\u7684\u7279\u6b8a\u8868\u793a\u5f62\u5f0f\uff0c\u662f\u901a\u8fc7\u4fee\u6539\u6216\u91cd\u65b0\u89e3\u91ca\u8fd9\u4e2a\u521d\u59cb\u957f\u5ea6\u5b57\u6765\u5de5\u4f5c\u7684\u3002\u56e0\u6b64\uff0c\u652f\u6301\u53ef TOAST \u6570\u636e\u7c7b\u578b\u7684\nC \u7ea7\u51fd\u6570\uff0c\u5fc5\u987b\u5c0f\u5fc3\u5904\u7406\u53ef\u80fd\u5df2\u7ecf\u8fc7 TOAST \u5904\u7406\u7684\u8f93\u5165\u503c\uff1a\u5728\u88ab<em>\u53bb TOAST \u5316</em>\u4e4b\u524d\uff0c\u4e00\u4e2a\u8f93\u5165\u503c\u672a\u5fc5\u771f\u6b63\u7531\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u548c\u5185\u5bb9\u7ec4\u6210\u3002\uff08\u901a\u5e38\u662f\u5728\u5bf9\u8f93\u5165\u503c\u505a\u4efb\u4f55\u5904\u7406\u4e4b\u524d\u8c03\u7528 <code>PG_DETOAST_DATUM</code>\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u91c7\u7528\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u8be6\u89c1<a href=\"/docs/18/xtypes.html#XTYPES-TOAST\">\u7b2c\u00a036.13.1\u00a0\u8282</a>\u3002\uff09\n</p><p>\nTOAST \u4f1a\u5360\u7528 varlena \u957f\u5ea6\u5b57\u4e2d\u7684\u4e24\u4e2a\u4f4d\uff08\u5728\u5927\u7aef\u673a\u5668\u4e0a\u662f\u6700\u9ad8\u7684\u4e24\u4f4d\uff0c\u5728\u5c0f\u7aef\u673a\u5668\u4e0a\u662f\u6700\u4f4e\u7684\u4e24\u4f4d\uff09\uff0c\u4ece\u800c\u628a\u4efb\u4f55\u53ef\nTOAST \u6570\u636e\u7c7b\u578b\u503c\u7684\u903b\u8f91\u5927\u5c0f\u9650\u5236\u4e3a 1 GB\uff082<sup>30</sup> - 1 \u5b57\u8282\uff09\u3002\u5f53\u8fd9\u4e24\u4e2a\u4f4d\u90fd\u4e3a\u96f6\u65f6\uff0c\u8be5\u503c\u5c31\u662f\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u7684\u666e\u901a\u3001\u672a\u7ecf TOAST \u5904\u7406\u7684\u503c\uff0c\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u8be5 datum \u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5\u503c\u4f7f\u7528\u7684\u4e0d\u662f\u901a\u5e38\u7684\u56db\u5b57\u8282\u5934\u90e8\uff0c\u800c\u662f\u5355\u5b57\u8282\u5934\u90e8\uff1b\u8be5\u5b57\u8282\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa datum\n\u7684\u603b\u5927\u5c0f\uff08\u5305\u62ec\u957f\u5ea6\u5b57\u8282\uff09\uff0c\u4ee5\u5b57\u8282\u8ba1\u3002\u8fd9\u6837\u65e2\u80fd\u9ad8\u6548\u5b58\u50a8\u77ed\u4e8e 127 \u5b57\u8282\u7684\u503c\uff0c\u53c8\u4ecd\u7136\u5141\u8bb8\u6570\u636e\u7c7b\u578b\u5728\u9700\u8981\u65f6\u589e\u957f\u5230 1 GB\u3002\u5e26\u5355\u5b57\u8282\u5934\u90e8\u7684\u503c\u4e0d\u6309\u4efb\u4f55\u7279\u5b9a\u8fb9\u754c\u5bf9\u9f50\uff0c\u800c\u5e26\u56db\u5b57\u8282\u5934\u90e8\u7684\u503c\u81f3\u5c11\u6309\u56db\u5b57\u8282\u8fb9\u754c\u5bf9\u9f50\uff1b\u7701\u53bb\u8fd9\u90e8\u5206\u5bf9\u9f50\u586b\u5145\u540e\uff0c\u76f8\u5bf9\u4e8e\u77ed\u503c\u800c\u8a00\uff0c\u53ef\u4ee5\u663e\u8457\u8282\u7701\u7a7a\u95f4\u3002\u4f5c\u4e3a\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u679c\u5355\u5b57\u8282\u5934\u90e8\u7684\u5176\u4f59\u4f4d\u5168\u4e3a\u96f6\uff08\u5bf9\u4e8e\u5305\u542b\u957f\u5ea6\u5b57\u8282\u81ea\u8eab\u7684\u957f\u5ea6\u800c\u8a00\uff0c\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0c\u5219\u8be5\u503c\u662f\u4e00\u4e2a\u6307\u5411\u884c\u5916\u6570\u636e\u7684\u6307\u9488\uff0c\u5b83\u53ef\u80fd\u6709\u4e0b\u9762\u5c06\u63cf\u8ff0\u7684\u51e0\u79cd\u5f62\u5f0f\u3002\u8fd9\u6837\u4e00\u79cd <em>TOAST \u6307\u9488</em>\u7684\u7c7b\u578b\u548c\u5927\u5c0f\uff0c\u7531 datum \u7b2c\u4e8c\u4e2a\u5b57\u8282\u4e2d\u5b58\u50a8\u7684\u7f16\u7801\u51b3\u5b9a\u3002\u6700\u540e\uff0c\u5f53\u6700\u9ad8\u4f4d\u6216\u6700\u4f4e\u4f4d\u4e3a\u96f6\u3001\u4f46\u76f8\u90bb\u7684\u4e00\u4f4d\u88ab\u7f6e\u4f4d\u65f6\uff0c\u8be5 datum \u7684\u5185\u5bb9\u5df2\u88ab\u538b\u7f29\uff0c\u4f7f\u7528\u524d\u5fc5\u987b\u5148\u89e3\u538b\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56db\u5b57\u8282\u957f\u5ea6\u5b57\u7684\u5176\u4f59\u4f4d\u7ed9\u51fa\u7684\u662f\u538b\u7f29\u540e datum \u7684\u603b\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u539f\u59cb\u6570\u636e\u7684\u5927\u5c0f\u3002\u8bf7\u6ce8\u610f\uff0c\u884c\u5916\u6570\u636e\u4e5f\u53ef\u80fd\u88ab\u538b\u7f29\uff0c\u4f46 varlena \u5934\u90e8\u4e0d\u4f1a\u544a\u8bc9\u4f60\u662f\u5426\u53d1\u751f\u4e86\u538b\u7f29\uff0c\u8fd9\u4e00\u70b9\u8981\u7531 TOAST\n\u6307\u9488\u7684\u5185\u5bb9\u6765\u8bf4\u660e\u3002\n</p><p><a href=\"/docs/18/storage-toast.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}