{"kind": "storage", "major": "18", "item": {"slug": "storage-file-layout", "name": "Database File Layout", "name_zh": "", "category": "\u7269\u7406\u7ed3\u6784", "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "aliases": [], "content_hash": "389509d3f1f338dc9033254583bf1980431a69cdf76186ab6b407c0f3dad8282", "versions": {"10": {"facts": [{"label": "\u5b9a\u4e49\u8303\u56f4", "value": "\u540c\u7248\u672c\u6838\u5fc3\u7269\u7406\u5b58\u50a8\u6587\u6863"}], "tables": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 10 English manual", "sha256": "093b3f235454c71a726c19d2a533af52677d400170ccbc8f4b8cab5cfb19946a"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/10/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "94af6cdae88f5334832106afdde2481a2ff18e6eb4fbc8aed64df3cb046e721d", "fragment_sha256": "8413a23ee3cfd7f5ed476ecfa4a0a548e1568988344dc64f5820a80df8de7327", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "b41a0eea293f88817a10919ead7a0ff896dc3ff38afa47a2ef7a4a27e0baff02", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "10", "text_hash": "2921babe4b8bb00e3285c0d450b9a9daf9e8d59290d97eade9a2ded28c432fbe", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/10/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "94af6cdae88f5334832106afdde2481a2ff18e6eb4fbc8aed64df3cb046e721d", "fragment_sha256": "8413a23ee3cfd7f5ed476ecfa4a0a548e1568988344dc64f5820a80df8de7327", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "b41a0eea293f88817a10919ead7a0ff896dc3ff38afa47a2ef7a4a27e0baff02", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 67.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002</p><p>\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002</p><p><code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/10/storage.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a067.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002</p><p>\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002</p><p><a href=\"/zh/docs/10/storage.html#STORAGE-FILE-LAYOUT\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 67.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "10", "link_map": {"/zh/docs/10/storage.html#STORAGE-FILE-LAYOUT": "/docs/10/storage.html#STORAGE-FILE-LAYOUT", "/zh/docs/10/storage.html#PGDATA-CONTENTS-TABLE": "/docs/10/storage.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002</p><p>\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002</p><p><code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/10/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a067.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002</p><p>\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002</p><p><a href=\"/zh/docs/10/storage.html#STORAGE-FILE-LAYOUT\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "2fa5a72e002f70d0b1bfd27f831f1ed5900afe3ddf3eb4b6414884a41e44a262", "content_hash": "2921babe4b8bb00e3285c0d450b9a9daf9e8d59290d97eade9a2ded28c432fbe", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 67.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/10/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/10/app-psql.html", "method": "same-major semantic node", "sha256": "07e2383663e136e49c565dc43b76b773af4caa89393ce1854d32ec8cc15f2d3c", "language": "zh", "matched_nodes": ["#APP-PSQL/div[7]/div[3]/div[10]/dl[0]/dd[41]/div[1]/h3[0]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "This section describes the storage format at the level of files and directories.", "/versions/10/facts/0/label": "Definition scope", "/versions/10/facts/0/value": "Same-version core physical storage documentation", "/versions/10/tables/0/title": "Contents of PGDATA", "/versions/10/related/0/label": "Storage Parameters", "/versions/10/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/10/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/10/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/10/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/10/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/10/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/10/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/10/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/10/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/10/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/10/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/10/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/10/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/10/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/10/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/10/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/10/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/10/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/10/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/10/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/10/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/10/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (empty on Windows), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/10/tables/0/columns/0/label": "Item", "/versions/10/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "25575de4e42722af0a2776bbffb7a418989792ef4e20dd9dd7f2c07e3ef59abe", "canonical_center_text_hash": "2921babe4b8bb00e3285c0d450b9a9daf9e8d59290d97eade9a2ded28c432fbe"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 67.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (empty on Windows), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "bebaeb5de90eb933431406daaddd1810670aa67cc94528145482ee440283127e", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002</p><p>\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002</p><p><code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/10/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a067.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002</p><p>\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002</p><p><a href=\"/zh/docs/10/storage.html#STORAGE-FILE-LAYOUT\" 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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 11 English manual", "sha256": "cbed09542ca2b0c2412d9e0810e5283a7626385224a23e094412d8f62be81985"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/11/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "bab880b9c4b0458a1292568ff901f9251365930386e436d45fbe7a5fa10a0cf8", "fragment_sha256": "41323feb1c52e61209cdf2a7863eb868c3334c11ae4fc1f2aafc4239573a546c", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "06e8e828935e8590bb1a3529e4baf3830ad2a9805260c753a57bfab461ea92a3", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "11", "text_hash": "4138273a2b3b4d5c9d4254b7d62ffe5fd8b0c1e9153d85967271651533e7501e", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/11/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "bab880b9c4b0458a1292568ff901f9251365930386e436d45fbe7a5fa10a0cf8", "fragment_sha256": "41323feb1c52e61209cdf2a7863eb868c3334c11ae4fc1f2aafc4239573a546c", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "06e8e828935e8590bb1a3529e4baf3830ad2a9805260c753a57bfab461ea92a3", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/11/storage.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/11/storage.html#STORAGE-FILE-LAYOUT\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "11", "link_map": {"/zh/docs/11/storage.html#STORAGE-FILE-LAYOUT": "/docs/11/storage.html#STORAGE-FILE-LAYOUT", "/zh/docs/11/storage.html#PGDATA-CONTENTS-TABLE": "/docs/11/storage.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/11/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/11/storage.html#STORAGE-FILE-LAYOUT\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "b14a2f5de0f5b77ba3f1feda5a9630854bbea35103a714ae1c13380b3cb60795", "content_hash": "4138273a2b3b4d5c9d4254b7d62ffe5fd8b0c1e9153d85967271651533e7501e", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/11/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/11/app-psql.html", "method": "same-major semantic node", "sha256": "01339254dd1dc30d095af846d0b6a7c01f96338187a6fbb8cf45290d5941196b", "language": "zh", "matched_nodes": ["#APP-PSQL/div[7]/div[3]/div[10]/dl[0]/dd[41]/div[1]/h3[0]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "This section describes the storage format at the level of files and directories.", "/versions/11/facts/0/label": "Definition scope", "/versions/11/facts/0/value": "Same-version core physical storage documentation", "/versions/11/tables/0/title": "Contents of PGDATA", "/versions/11/related/0/label": "Storage Parameters", "/versions/11/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/11/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/11/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/11/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/11/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/11/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/11/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/11/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/11/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/11/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/11/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/11/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/11/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/11/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/11/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/11/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/11/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/11/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/11/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/11/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/11/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/11/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (empty on Windows), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/11/tables/0/columns/0/label": "Item", "/versions/11/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "e36ea464132bdf763baf41b47f3737cb8b228a15ab8a0293db8658e148e6dbcc", "canonical_center_text_hash": "4138273a2b3b4d5c9d4254b7d62ffe5fd8b0c1e9153d85967271651533e7501e"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (empty on Windows), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "bebaeb5de90eb933431406daaddd1810670aa67cc94528145482ee440283127e", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/11/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/11/storage.html#STORAGE-FILE-LAYOUT\" 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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 12 English manual", "sha256": "cb2e82b933c3712adaf61cc5a26d266e9f007698df549f999db9962bb6f39823"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/12/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "34b63c2af8603bf1a123e05d5e1a2e513806ca27d457315a04809855c3cb457a", "fragment_sha256": "e38c729c2db8bcd3141f2c984c71866ed14ccd618b58a184a4a3153d1b5b7cb5", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "095ddd62f00139a135a305f4355000a57c717bbe85ebc7b5b54f3771d30fb877", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "12", "text_hash": "e4453f77a66ff8b13091dd0078115ebb8d665728cb1955ba5aed00b141997ea1", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/12/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "34b63c2af8603bf1a123e05d5e1a2e513806ca27d457315a04809855c3cb457a", "fragment_sha256": "e38c729c2db8bcd3141f2c984c71866ed14ccd618b58a184a4a3153d1b5b7cb5", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "095ddd62f00139a135a305f4355000a57c717bbe85ebc7b5b54f3771d30fb877", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/12/storage.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/12/storage.html#STORAGE-FILE-LAYOUT\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "12", "link_map": {"/zh/docs/12/storage.html#STORAGE-FILE-LAYOUT": "/docs/12/storage.html#STORAGE-FILE-LAYOUT", "/zh/docs/12/storage.html#PGDATA-CONTENTS-TABLE": "/docs/12/storage.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/12/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/12/storage.html#STORAGE-FILE-LAYOUT\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "f56633189d2356570b1b8e20b68d9bf8f057e0060c90e84621a3b1a4cf6d11c1", "content_hash": "e4453f77a66ff8b13091dd0078115ebb8d665728cb1955ba5aed00b141997ea1", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08Windows \u4e0a\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/12/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/12/app-psql.html", "method": "same-major semantic node", "sha256": "1eb88d17f6ce811d722e5c4ed036f78a7872bf88410c08db794c428e3cfc98ce", "language": "zh", "matched_nodes": ["#APP-PSQL/div[7]/div[3]/div[10]/dl[0]/dd[41]/div[1]/h3[0]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "This section describes the storage format at the level of files and directories.", "/versions/12/facts/0/label": "Definition scope", "/versions/12/facts/0/value": "Same-version core physical storage documentation", "/versions/12/tables/0/title": "Contents of PGDATA", "/versions/12/related/1/label": "Storage Parameters", "/versions/12/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/12/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/12/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/12/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/12/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/12/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/12/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/12/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/12/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/12/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/12/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/12/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/12/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/12/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/12/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/12/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/12/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/12/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/12/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/12/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/12/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/12/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (empty on Windows), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/12/tables/0/columns/0/label": "Item", "/versions/12/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "10a1b3f0f356ad6efef8f13f795e893e2ee9c5c2752c6954c2a98a0040f353e7", "canonical_center_text_hash": "e4453f77a66ff8b13091dd0078115ebb8d665728cb1955ba5aed00b141997ea1"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (empty on Windows), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "bebaeb5de90eb933431406daaddd1810670aa67cc94528145482ee440283127e", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/12/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/12/storage.html#STORAGE-FILE-LAYOUT\" 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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 13 English manual", "sha256": "2c839dc903912e2950982d087d63ebb1a03d2818c75443e237320784aa6443f8"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/13/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "efed129aff91f45e831c56ca2e3ffb09a4a8d573ef1140b791d8591907504598", "fragment_sha256": "36f8580507ed8a50ae07a7d827df5bad00f0510ead702e3ad12b756fad9e8447", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "1f419439b417bbaf6cd3b908af18107cad5139b7eb85dab17eb05796cfc5b61e", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "13", "text_hash": "6877af51583bbcea19fa26dac6ce1478142f814940e6303f035f68ba5f5c6d57", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/13/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "efed129aff91f45e831c56ca2e3ffb09a4a8d573ef1140b791d8591907504598", "fragment_sha256": "36f8580507ed8a50ae07a7d827df5bad00f0510ead702e3ad12b756fad9e8447", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "1f419439b417bbaf6cd3b908af18107cad5139b7eb85dab17eb05796cfc5b61e", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/13/storage.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/13/storage.html#STORAGE-FILE-LAYOUT\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "13", "link_map": {"/zh/docs/13/storage.html#STORAGE-FILE-LAYOUT": "/docs/13/storage.html#STORAGE-FILE-LAYOUT", "/zh/docs/13/storage.html#PGDATA-CONTENTS-TABLE": "/docs/13/storage.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/13/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/13/storage.html#STORAGE-FILE-LAYOUT\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "cb2dcadf6766d281f78421b8e797dd466dab44ac35140d6c55f7b639abcd3b34", "content_hash": "6877af51583bbcea19fa26dac6ce1478142f814940e6303f035f68ba5f5c6d57", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/13/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/13/app-psql.html", "method": "same-major semantic node", "sha256": "dd2bf63d81b9a9d3fc69c646197cfdc14a0b1bab1c9f0b98608d66554da4a261", "language": "zh", "matched_nodes": ["#APP-PSQL/div[7]/div[3]/div[10]/dl[0]/dd[49]/div[1]/h3[0]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "This section describes the storage format at the level of files and directories.", "/versions/13/facts/0/label": "Definition scope", "/versions/13/facts/0/value": "Same-version core physical storage documentation", "/versions/13/tables/0/title": "Contents of PGDATA", "/versions/13/related/1/label": "Storage Parameters", "/versions/13/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/13/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/13/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/13/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/13/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/13/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/13/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/13/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/13/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/13/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/13/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/13/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/13/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/13/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/13/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/13/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/13/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/13/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/13/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/13/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/13/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/13/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/13/tables/0/columns/0/label": "Item", "/versions/13/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "931e5b421e8b3739fd227a3d38281da4c11065ba107b4b8e6536fd2c24601c37", "canonical_center_text_hash": "6877af51583bbcea19fa26dac6ce1478142f814940e6303f035f68ba5f5c6d57"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 69.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/13/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a069.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/13/storage.html#STORAGE-FILE-LAYOUT\" 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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 14 English manual", "sha256": "6321dbd90cb8a8dfdc90c0e1caeaf3d480705176bba0428510fd986fe681eae3"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/14/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "3dc0761a8e7141eb56d10a6f2a02ef28cf806c4a3d31fe0e22fd459d9d2bc9bb", "fragment_sha256": "8fa88adce13c16840a57633d5cef3e8698b75083cf224709546b8acf94330e07", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "5b12ca949a8fc1a1630403697b2fcca5e5e073ec7b9cc44b58e934de43fa8b23", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "14", "text_hash": "bfb07d69557ba02a7535823328af5d60cbfecbd68b769eaea921b4696c6438e0", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/14/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "3dc0761a8e7141eb56d10a6f2a02ef28cf806c4a3d31fe0e22fd459d9d2bc9bb", "fragment_sha256": "8fa88adce13c16840a57633d5cef3e8698b75083cf224709546b8acf94330e07", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "5b12ca949a8fc1a1630403697b2fcca5e5e073ec7b9cc44b58e934de43fa8b23", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 70.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/14/storage.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a070.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/14/storage.html#STORAGE-FILE-LAYOUT\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 70.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "14", "link_map": {"/zh/docs/14/storage.html#STORAGE-FILE-LAYOUT": "/docs/14/storage.html#STORAGE-FILE-LAYOUT", "/zh/docs/14/storage.html#PGDATA-CONTENTS-TABLE": "/docs/14/storage.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/14/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a070.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/14/storage.html#STORAGE-FILE-LAYOUT\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "297eb9e588051d4fb84bac0ab15ac9046879b5546eb2663565eebf1df1935de5", "content_hash": "bfb07d69557ba02a7535823328af5d60cbfecbd68b769eaea921b4696c6438e0", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 70.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/14/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/14/app-psql.html", "method": "same-major semantic node", "sha256": "11c74f85ef9d2c9b3921e0c622d69dd3f1b3ed0c916197a94ddab5540153e310", "language": "zh", "matched_nodes": ["#APP-PSQL/div[7]/div[3]/div[10]/dl[0]/dd[49]/div[1]/h3[0]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "This section describes the storage format at the level of files and directories.", "/versions/14/facts/0/label": "Definition scope", "/versions/14/facts/0/value": "Same-version core physical storage documentation", "/versions/14/tables/0/title": "Contents of PGDATA", "/versions/14/related/1/label": "Storage Parameters", "/versions/14/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/14/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/14/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/14/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/14/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/14/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/14/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/14/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/14/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/14/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/14/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/14/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/14/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/14/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/14/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/14/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/14/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/14/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/14/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/14/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/14/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/14/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/14/tables/0/columns/0/label": "Item", "/versions/14/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "3c1e6be68a9704576df4070d004804acaff70203be6663b163889bc165faf456", "canonical_center_text_hash": "bfb07d69557ba02a7535823328af5d60cbfecbd68b769eaea921b4696c6438e0"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 70.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/14/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a070.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/14/storage.html#STORAGE-FILE-LAYOUT\" 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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 15 English manual", "sha256": "01868f8e03e8749d2c1b113ab2988c459ac44259ce7416677e981e41e33015ea"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/15/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "56436f3504bf627a4cde8c272b488c76f635fa209816b310eb3db961f737bf83", "fragment_sha256": "787461c4cdd1a6137baff0a8819bad051bf27396fd93265fe65e8be31f568588", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "59de3c953e1cc1c1855429d5323b0836bd9504769b0cb416fc8229418791b3e4", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "15", "text_hash": "349c391a8c9debcca779ed84cbfa3cb45c591182278d05c93353510d0d0a2474", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/15/storage.html#STORAGE-FILE-LAYOUT", "anchor": "STORAGE-FILE-LAYOUT", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "storage.html", "extraction": "concept-introduction", "source_hash": "56436f3504bf627a4cde8c272b488c76f635fa209816b310eb3db961f737bf83", "fragment_sha256": "787461c4cdd1a6137baff0a8819bad051bf27396fd93265fe65e8be31f568588", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "59de3c953e1cc1c1855429d5323b0836bd9504769b0cb416fc8229418791b3e4", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 73.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/15/storage.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a073.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/15/storage.html#STORAGE-FILE-LAYOUT\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 73.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "15", "link_map": {"/zh/docs/15/storage.html#STORAGE-FILE-LAYOUT": "/docs/15/storage.html#STORAGE-FILE-LAYOUT", "/zh/docs/15/storage.html#PGDATA-CONTENTS-TABLE": "/docs/15/storage.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/15/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a073.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/15/storage.html#STORAGE-FILE-LAYOUT\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "c2f2344f03e3dbc3af69adf234f1957a7d89ef8209e90a00fb1ea0828dfb8760", "content_hash": "349c391a8c9debcca779ed84cbfa3cb45c591182278d05c93353510d0d0a2474", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 73.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/15/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/15/app-psql.html", "method": "same-major semantic node", "sha256": "8d6ed2e3400192f466dca73fd9423e91b9ede916fe0981b7e0cd42bc091394d2", "language": "zh", "matched_nodes": ["#APP-PSQL/div[7]/div[3]/div[10]/dl[0]/dd[51]/div[1]/h3[0]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "This section describes the storage format at the level of files and directories.", "/versions/15/facts/0/label": "Definition scope", "/versions/15/facts/0/value": "Same-version core physical storage documentation", "/versions/15/tables/0/title": "Contents of PGDATA", "/versions/15/related/1/label": "Storage Parameters", "/versions/15/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/15/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/15/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/15/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/15/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/15/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/15/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/15/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/15/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/15/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/15/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/15/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/15/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/15/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/15/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/15/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/15/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/15/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/15/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/15/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/15/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/15/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/15/tables/0/columns/0/label": "Item", "/versions/15/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c68c26c9d6f05254c16f0220c0381e75f052bb1858ed5ccb5659088b5da100cb", "canonical_center_text_hash": "349c391a8c9debcca779ed84cbfa3cb45c591182278d05c93353510d0d0a2474"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 73.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/15/storage.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a073.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/15/storage.html#STORAGE-FILE-LAYOUT\" 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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 16 English manual", "sha256": "f03daad7b39b5df902b4bc6e6f856e65af368a8507ffbf02199804aa4b0d0bd5"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/16/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "3c7e10a573ed356405b27aa7cf16673df9178d044d2e80985d79b139ccc5c113", "fragment_sha256": "cbddc0dff20de9c7e4b9fbd292b1cf71d8bfa69f9f68c0daa3a0ec5ed01c3d24", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "6bb168cbb160ae47081e1dbb6b3936fde587c50f88cd159fbe6916c9ce08d8a0", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "16", "text_hash": "97a8bf90da1832f2ebd0f8c8025e5078bfca6a68e6a3019e91f07c12291a6871", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/16/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "3c7e10a573ed356405b27aa7cf16673df9178d044d2e80985d79b139ccc5c113", "fragment_sha256": "cbddc0dff20de9c7e4b9fbd292b1cf71d8bfa69f9f68c0daa3a0ec5ed01c3d24", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "6bb168cbb160ae47081e1dbb6b3936fde587c50f88cd159fbe6916c9ce08d8a0", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 73.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/16/storage-file-layout.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a073.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/16/storage-file-layout.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 73.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "16", "link_map": {"/zh/docs/16/storage-file-layout.html": "/docs/16/storage-file-layout.html", "/zh/docs/16/storage-file-layout.html#PGDATA-CONTENTS-TABLE": "/docs/16/storage-file-layout.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/16/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a073.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/16/storage-file-layout.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "86e0b8b868bf0e151c52b81437ac310425f6641224ca9e9f47a2fc4c60e61dd6", "content_hash": "97a8bf90da1832f2ebd0f8c8025e5078bfca6a68e6a3019e91f07c12291a6871", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 73.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/16/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/16/storage-file-layout.html", "method": "same-major semantic node", "sha256": "48e790262e9e85bed1ff8a46ded4fba4648f10ae4c6e2721d50efcafbc99baf4", "language": "zh", "matched_nodes": ["#STORAGE-FILE-LAYOUT/div[9]/h3[0]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "This section describes the storage format at the level of files and directories.", "/versions/16/facts/0/label": "Definition scope", "/versions/16/facts/0/value": "Same-version core physical storage documentation", "/versions/16/tables/0/title": "Contents of PGDATA", "/versions/16/related/1/label": "Storage Parameters", "/versions/16/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/16/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/16/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/16/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/16/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/16/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/16/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/16/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/16/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/16/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/16/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/16/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/16/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/16/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/16/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/16/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/16/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/16/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/16/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/16/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/16/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/16/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/16/tables/0/columns/0/label": "Item", "/versions/16/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "5d247e4ef774e54d1e5249e9bd0075c37ee84978473901fc51103ab21c648635", "canonical_center_text_hash": "97a8bf90da1832f2ebd0f8c8025e5078bfca6a68e6a3019e91f07c12291a6871"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 73.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/16/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a073.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/16/storage-file-layout.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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 17 English manual", "sha256": "f3de9587ca7d02f068a4307639ba9e24f7e90a722f8e71b496428de6aaba8652"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/17/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "b604b572b86df5108ce198470c4f4890ba9dfac7574692e171ee471a106fcce0", "fragment_sha256": "f478df8c8ce97b75c7bcd9f10806b0b847f00fc353ae813b575fde736ffce24e", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "992c65c74db75320b5c3ed6f9b02627c9a302698c529012cdefe221834eb426d", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "17", "text_hash": "189f5f0f76d8c42fd070e9d513b5924ac67f4ea7336492dbc6ec9fad5e3c52f4", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/17/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "b604b572b86df5108ce198470c4f4890ba9dfac7574692e171ee471a106fcce0", "fragment_sha256": "f478df8c8ce97b75c7bcd9f10806b0b847f00fc353ae813b575fde736ffce24e", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "992c65c74db75320b5c3ed6f9b02627c9a302698c529012cdefe221834eb426d", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 65.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/17/storage-file-layout.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a065.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/17/storage-file-layout.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 65.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "17", "link_map": {"/zh/docs/17/storage-file-layout.html": "/docs/17/storage-file-layout.html", "/zh/docs/17/storage-file-layout.html#PGDATA-CONTENTS-TABLE": "/docs/17/storage-file-layout.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/17/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a065.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/17/storage-file-layout.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "be21dd987237b1762e445160f3868e21c66a50ab029f4a7976b13322a27a0054", "content_hash": "189f5f0f76d8c42fd070e9d513b5924ac67f4ea7336492dbc6ec9fad5e3c52f4", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 65.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/17/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/17/storage-file-layout.html", "method": "same-major semantic node", "sha256": "560012604ef3e72433d00f8d7c10e196fc8d62ce42f886a6d72b9471e74a6257", "language": "zh", "matched_nodes": ["#STORAGE-FILE-LAYOUT/div[0]", "#STORAGE-FILE-LAYOUT/div[4]/p[0]", "#STORAGE-FILE-LAYOUT/div[9]/h3[0]", "#STORAGE-FILE-LAYOUT/p[11]", "#STORAGE-FILE-LAYOUT/p[12]", "#STORAGE-FILE-LAYOUT/p[3]", "#STORAGE-FILE-LAYOUT/p[8]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "This section describes the storage format at the level of files and directories.", "/versions/17/facts/0/label": "Definition scope", "/versions/17/facts/0/value": "Same-version core physical storage documentation", "/versions/17/tables/0/title": "Contents of PGDATA", "/versions/17/related/1/label": "Storage Parameters", "/versions/17/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/17/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/17/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/17/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/17/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/17/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/17/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/17/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/17/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/17/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/17/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/17/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/17/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/17/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/17/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/17/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/17/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/17/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/17/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/17/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/17/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/17/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/17/tables/0/columns/0/label": "Item", "/versions/17/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "2af3b360786f83d7ee46c2a021ccc45085381905453d272ce4ec977018120c94", "canonical_center_text_hash": "189f5f0f76d8c42fd070e9d513b5924ac67f4ea7336492dbc6ec9fad5e3c52f4"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 65.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/17/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a065.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/17/storage-file-layout.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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 18 English manual", "sha256": "8cdf46b5af669f41f0a77c2541863d63454ef8fbb44d22a75e576cf1a7efc9c9"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "b919cbcb8aedb49e32e5185e2c7753b075945bb7c0e00c59b81974d853143a0a", "fragment_sha256": "257fb050d6193b915e73cee0d717b72f3e9e669fd98d6e4cebef2941b6a6378b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "37c93cfa2e692b211003c6f62cc898b8697425e40a2489ee675123d1b0daae23", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "18", "text_hash": "43f8e5dbb0416cdc80ca814964d8a069f40fc24f776de73f7ac10c31151054b9", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "b919cbcb8aedb49e32e5185e2c7753b075945bb7c0e00c59b81974d853143a0a", "fragment_sha256": "257fb050d6193b915e73cee0d717b72f3e9e669fd98d6e4cebef2941b6a6378b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "37c93cfa2e692b211003c6f62cc898b8697425e40a2489ee675123d1b0daae23", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/18/storage-file-layout.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "18", "link_map": {"/zh/docs/18/storage-file-layout.html": "/docs/18/storage-file-layout.html", "/zh/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE": "/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/18/storage-file-layout.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "e13092420b6d392e0475179b7544492caa5f745fea5c9ee07c451a7549c147d6", "content_hash": "43f8e5dbb0416cdc80ca814964d8a069f40fc24f776de73f7ac10c31151054b9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/18/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/storage-file-layout.html", "method": "same-major semantic node", "sha256": "55056edf7352b4e414c1366406a307a72af33aeda7854ef3a8cc1fa5c0db23ad", "language": "zh", "matched_nodes": ["#STORAGE-FILE-LAYOUT/div[0]", "#STORAGE-FILE-LAYOUT/div[4]/p[0]", "#STORAGE-FILE-LAYOUT/div[9]/h3[0]", "#STORAGE-FILE-LAYOUT/p[11]", "#STORAGE-FILE-LAYOUT/p[12]", "#STORAGE-FILE-LAYOUT/p[3]", "#STORAGE-FILE-LAYOUT/p[8]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "This section describes the storage format at the level of files and directories.", "/versions/18/facts/0/label": "Definition scope", "/versions/18/facts/0/value": "Same-version core physical storage documentation", "/versions/18/tables/0/title": "Contents of PGDATA", "/versions/18/related/1/label": "Storage Parameters", "/versions/18/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/18/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/18/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/18/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/18/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/18/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/18/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/18/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/18/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/18/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/18/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/18/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/18/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/18/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/18/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/18/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/18/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/18/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/18/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/18/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/18/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/18/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/18/tables/0/columns/0/label": "Item", "/versions/18/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "8685c87dcbc9ef532d5f89e4db5917ae183ee72e37dbdbcd5f3d0dc01f7a5ad4", "canonical_center_text_hash": "43f8e5dbb0416cdc80ca814964d8a069f40fc24f776de73f7ac10c31151054b9"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/18/storage-file-layout.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-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/docs/18/storage-file-layout.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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 19 English manual", "sha256": "628996446c17dc27f581a5f3a9686a23124a9e9054ebd91e05102268155ff139"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/19/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "f6e631b917f227057ee82b298b6f3c8e4b0d41412bf3f05307bf17353b8b3d2d", "fragment_sha256": "55664dc7fcb3a6d96522818960b039803e0152ead6fe00062bee6180b4d68f92", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "fd094058d8d7b16cac53425db4eb8cc4a9e1a30789be3abdb8f27414e1ffc337", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "19", "text_hash": "9a5ed3b1e1366bd2e2c75f7867a6e28dfd08d82a4eb7a14c27803513f3c8c05e", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/19/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "f6e631b917f227057ee82b298b6f3c8e4b0d41412bf3f05307bf17353b8b3d2d", "fragment_sha256": "55664dc7fcb3a6d96522818960b039803e0152ead6fe00062bee6180b4d68f92", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "fd094058d8d7b16cac53425db4eb8cc4a9e1a30789be3abdb8f27414e1ffc337", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/19/storage-file-layout.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/19/storage-file-layout.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "19", "link_map": {"/zh/docs/19/storage-file-layout.html": "/docs/19/storage-file-layout.html", "/zh/docs/19/storage-file-layout.html#PGDATA-CONTENTS-TABLE": "/docs/19/storage-file-layout.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/19/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/19/storage-file-layout.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "bde6997cd82b7c549586960831da919287a4e8ffa6bd97d9ff9e2ca5cce240ca", "content_hash": "9a5ed3b1e1366bd2e2c75f7867a6e28dfd08d82a4eb7a14c27803513f3c8c05e", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/19/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/19/storage-file-layout.html", "method": "same-major semantic node", "sha256": "9a13b1f05755a7031d551a429c6d21bff35d965f098909408a39259ca751f156", "language": "zh", "matched_nodes": ["#STORAGE-FILE-LAYOUT/div[0]", "#STORAGE-FILE-LAYOUT/div[4]/p[0]", "#STORAGE-FILE-LAYOUT/div[9]/h3[0]", "#STORAGE-FILE-LAYOUT/p[11]", "#STORAGE-FILE-LAYOUT/p[12]", "#STORAGE-FILE-LAYOUT/p[3]", "#STORAGE-FILE-LAYOUT/p[8]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "This section describes the storage format at the level of files and directories.", "/versions/19/facts/0/label": "Definition scope", "/versions/19/facts/0/value": "Same-version core physical storage documentation", "/versions/19/tables/0/title": "Contents of PGDATA", "/versions/19/related/1/label": "Storage Parameters", "/versions/19/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/19/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/19/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/19/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/19/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/19/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/19/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/19/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/19/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/19/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/19/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/19/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/19/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/19/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/19/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/19/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/19/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/19/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/19/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/19/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/19/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/19/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/19/tables/0/columns/0/label": "Item", "/versions/19/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "18bf7a726c60309d9916f6b07efec402396578129542a10e620cfcb3371335ea", "canonical_center_text_hash": "9a5ed3b1e1366bd2e2c75f7867a6e28dfd08d82a4eb7a14c27803513f3c8c05e"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/19/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/19/storage-file-layout.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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 20 English manual", "sha256": "385ac3f959e9f95fdfb8048a6ca4058330dbe7b5b87c109015b1e800c40615ad"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/devel/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "7b2d4aa0007100fe3f3cd28777f7bb94cbf0f1fe1c209a6ce2a1991aed1c8055", "fragment_sha256": "75cccea55320b48d9b18a16895bc2eab9984e7b238f7f0af81cbc71e86b8f4f9", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "849c7dfbdcc09b2f6719a8bd7ea6765f95d1fbed41e40502f67cf389d716bb03", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "20", "text_hash": "7efbcb719b6809b0d45e6a4285877596eae656623b52dc82e9ad50fa9798c968", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/devel/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "7b2d4aa0007100fe3f3cd28777f7bb94cbf0f1fe1c209a6ce2a1991aed1c8055", "fragment_sha256": "75cccea55320b48d9b18a16895bc2eab9984e7b238f7f0af81cbc71e86b8f4f9", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "849c7dfbdcc09b2f6719a8bd7ea6765f95d1fbed41e40502f67cf389d716bb03", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/devel/storage-file-layout.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/devel/storage-file-layout.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "20", "link_map": {"/zh/docs/devel/storage-file-layout.html": "/docs/devel/storage-file-layout.html", "/zh/docs/devel/storage-file-layout.html#PGDATA-CONTENTS-TABLE": "/docs/devel/storage-file-layout.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/devel/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/devel/storage-file-layout.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "00df62cda9c4fc97e18506da47320d89d07524e2290839026a9503fecc221a19", "content_hash": "7efbcb719b6809b0d45e6a4285877596eae656623b52dc82e9ad50fa9798c968", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/devel/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/devel/storage-file-layout.html", "method": "same-major semantic node", "sha256": "b9b6648fd2b429a3ecdd8415a850a0a45442ec89c62b4df06cbd7805b21a9363", "language": "zh", "matched_nodes": ["#STORAGE-FILE-LAYOUT/div[0]", "#STORAGE-FILE-LAYOUT/div[4]/p[0]", "#STORAGE-FILE-LAYOUT/div[9]/h3[0]", "#STORAGE-FILE-LAYOUT/p[11]", "#STORAGE-FILE-LAYOUT/p[12]", "#STORAGE-FILE-LAYOUT/p[3]", "#STORAGE-FILE-LAYOUT/p[8]"]}], "language": "zh", "original_text": {"/summary": "This section describes the storage format at the level of files and directories.", "/category": "Physical structures", "/versions/20/description/0": "This section describes the storage format at the level of files and directories.", "/versions/20/facts/0/label": "Definition scope", "/versions/20/facts/0/value": "Same-version core physical storage documentation", "/versions/20/tables/0/title": "Contents of PGDATA", "/versions/20/related/1/label": "Storage Parameters", "/versions/20/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/20/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/20/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/20/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/20/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/20/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/20/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/20/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/20/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/20/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/20/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/20/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/20/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/20/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/20/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/20/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/20/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/20/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/20/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/20/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/20/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/20/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/20/tables/0/columns/0/label": "Item", "/versions/20/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "3b6b0f9563eb71edb2b3febaa53c8879b8f604a2fa5eb2b2c1e3ad0819f6f31a", "canonical_center_text_hash": "7efbcb719b6809b0d45e6a4285877596eae656623b52dc82e9ad50fa9798c968"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/devel/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/devel/storage-file-layout.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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "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-file-layout.html", "path": "storage-file-layout.html", "label": "PostgreSQL 18 English manual", "sha256": "8cdf46b5af669f41f0a77c2541863d63454ef8fbb44d22a75e576cf1a7efc9c9"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "b919cbcb8aedb49e32e5185e2c7753b075945bb7c0e00c59b81974d853143a0a", "fragment_sha256": "257fb050d6193b915e73cee0d717b72f3e9e669fd98d6e4cebef2941b6a6378b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "37c93cfa2e692b211003c6f62cc898b8697425e40a2489ee675123d1b0daae23", "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": "Database File Layout", "locale": "zh-Hans", "source": {"key": "storage-file-layout", "locale": "zh-Hans", "version": "18", "text_hash": "43f8e5dbb0416cdc80ca814964d8a069f40fc24f776de73f7ac10c31151054b9", "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": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/storage-file-layout.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "storage-file-layout.html", "extraction": "concept-introduction", "source_hash": "b919cbcb8aedb49e32e5185e2c7753b075945bb7c0e00c59b81974d853143a0a", "fragment_sha256": "257fb050d6193b915e73cee0d717b72f3e9e669fd98d6e4cebef2941b6a6378b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "37c93cfa2e692b211003c6f62cc898b8697425e40a2489ee675123d1b0daae23", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code class=\"varname\">PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code class=\"varname\">PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code class=\"filename\">/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code class=\"varname\">PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a class=\"xref\" href=\"/zh/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code class=\"filename\">postgresql.conf</code>\u3001<code class=\"filename\">pg_hba.conf</code> \u548c\n<code class=\"filename\">pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code class=\"varname\">PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code class=\"varname\">PGDATA</code><code class=\"filename\">/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code class=\"structname\">pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/18/storage-file-layout.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "version": "18", "link_map": {"/zh/docs/18/storage-file-layout.html": "/docs/18/storage-file-layout.html", "/zh/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE": "/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE"}, "body_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/18/storage-file-layout.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "e13092420b6d392e0475179b7544492caa5f745fea5c9ee07c451a7549c147d6", "content_hash": "43f8e5dbb0416cdc80ca814964d8a069f40fc24f776de73f7ac10c31151054b9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "\u5305\u542b PostgreSQL \u5927\u7248\u672c\u53f7\u7684\u6587\u4ef6"}, {"c0": "base", "c1": "\u5305\u542b\u5404\u6570\u636e\u5e93\u5b50\u76ee\u5f55\u7684\u76ee\u5f55"}, {"c0": "current_logfiles", "c1": "\u8bb0\u5f55\u65e5\u5fd7\u6536\u96c6\u5668\u5f53\u524d\u6b63\u5728\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u6587\u4ef6"}, {"c0": "global", "c1": "\u5305\u542b\u96c6\u7fa4\u7ea7\u8868\uff08\u5982 pg_database\uff09\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_commit_ts", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u65f6\u95f4\u6233\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_dynshmem", "c1": "\u5305\u542b\u52a8\u6001\u5171\u4eab\u5185\u5b58\u5b50\u7cfb\u7edf\u6240\u7528\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_logical", "c1": "\u5305\u542b\u903b\u8f91\u89e3\u7801\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_multixact", "c1": "\u5305\u542b\u591a\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55\uff0c\u7528\u4e8e\u5171\u4eab\u884c\u9501"}, {"c0": "pg_notify", "c1": "\u5305\u542b LISTEN/NOTIFY \u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_replslot", "c1": "\u5305\u542b\u590d\u5236\u69fd\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_serial", "c1": "\u5305\u542b\u5df2\u63d0\u4ea4\u7684\u53ef\u4e32\u884c\u5316\u4e8b\u52a1\u4fe1\u606f\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_snapshots", "c1": "\u5305\u542b\u5df2\u5bfc\u51fa\u5feb\u7167\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u6301\u4e45\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_stat_tmp", "c1": "\u5305\u542b\u7edf\u8ba1\u5b50\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_subtrans", "c1": "\u5305\u542b\u5b50\u4e8b\u52a1\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_tblspc", "c1": "\u5305\u542b\u6307\u5411\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_twophase", "c1": "\u5305\u542b\u9884\u5907\u4e8b\u52a1\u72b6\u6001\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_wal", "c1": "\u5305\u542b WAL\uff08\u9884\u5199\u5f0f\u65e5\u5fd7\uff09\u6587\u4ef6\u7684\u5b50\u76ee\u5f55"}, {"c0": "pg_xact", "c1": "\u5305\u542b\u4e8b\u52a1\u63d0\u4ea4\u72b6\u6001\u6570\u636e\u7684\u5b50\u76ee\u5f55"}, {"c0": "postgresql.auto.conf", "c1": "\u5b58\u50a8\u7531 ALTER SYSTEM \u8bbe\u7f6e\u7684\u914d\u7f6e\u53c2\u6570\u7684\u6587\u4ef6"}, {"c0": "postmaster.opts", "c1": "\u8bb0\u5f55\u670d\u52a1\u5668\u4e0a\u6b21\u542f\u52a8\u6240\u7528\u547d\u4ee4\u884c\u9009\u9879\u7684\u6587\u4ef6"}, {"c0": "postmaster.pid", "c1": "\u9501\u6587\u4ef6\uff0c\u8bb0\u5f55\u5f53\u524d postmaster \u7684\u8fdb\u7a0b ID\uff08PID\uff09\u3001\u96c6\u7fa4\u6570\u636e\u76ee\u5f55\u8def\u5f84\u3001postmaster \u542f\u52a8\u65f6\u95f4\u6233\u3001\u7aef\u53e3\u53f7\u3001Unix \u57df\u5957\u63a5\u5b57\u76ee\u5f55\u8def\u5f84\uff08\u53ef\u80fd\u4e3a\u7a7a\uff09\u3001\u7b2c\u4e00\u4e2a\u6709\u6548\u7684 listen_address\uff08IP \u5730\u5740\u6216 *\uff1b\u672a\u76d1\u542c TCP \u65f6\u4e3a\u7a7a\uff09\u4ee5\u53ca\u5171\u4eab\u5185\u5b58\u6bb5 ID\u3002\u670d\u52a1\u5668\u5173\u95ed\u540e\u6b64\u6587\u4ef6\u4e0d\u5b58\u5728\u3002"}], "title": "PGDATA \u5185\u5bb9", "columns": [{"key": "c0", "label": "\u9879\u76ee"}, {"key": "c1", "label": "\u8bf4\u660e"}]}], "description": ["\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002"], "manual_html": "", "manual_path": "/docs/18/storage-file-layout.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/storage-file-layout.html", "method": "same-major semantic node", "sha256": "55056edf7352b4e414c1366406a307a72af33aeda7854ef3a8cc1fa5c0db23ad", "language": "zh", "matched_nodes": ["#STORAGE-FILE-LAYOUT/div[0]", "#STORAGE-FILE-LAYOUT/div[4]/p[0]", "#STORAGE-FILE-LAYOUT/div[9]/h3[0]", "#STORAGE-FILE-LAYOUT/p[11]", "#STORAGE-FILE-LAYOUT/p[12]", "#STORAGE-FILE-LAYOUT/p[3]", "#STORAGE-FILE-LAYOUT/p[8]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "This section describes the storage format at the level of files and directories.", "/versions/18/facts/0/label": "Definition scope", "/versions/18/facts/0/value": "Same-version core physical storage documentation", "/versions/18/tables/0/title": "Contents of PGDATA", "/versions/18/related/1/label": "Storage Parameters", "/versions/18/tables/0/rows/0/c1": "A file containing the major version number of PostgreSQL", "/versions/18/tables/0/rows/1/c1": "Subdirectory containing per-database subdirectories", "/versions/18/tables/0/rows/2/c1": "File recording the log file(s) currently written to by the logging collector", "/versions/18/tables/0/rows/3/c1": "Subdirectory containing cluster-wide tables, such as pg_database", "/versions/18/tables/0/rows/4/c1": "Subdirectory containing transaction commit timestamp data", "/versions/18/tables/0/rows/5/c1": "Subdirectory containing files used by the dynamic shared memory subsystem", "/versions/18/tables/0/rows/6/c1": "Subdirectory containing status data for logical decoding", "/versions/18/tables/0/rows/7/c1": "Subdirectory containing multitransaction status data (used for shared row locks)", "/versions/18/tables/0/rows/8/c1": "Subdirectory containing LISTEN/NOTIFY status data", "/versions/18/tables/0/rows/9/c1": "Subdirectory containing replication slot data", "/versions/18/tables/0/rows/10/c1": "Subdirectory containing information about committed serializable transactions", "/versions/18/tables/0/rows/11/c1": "Subdirectory containing exported snapshots", "/versions/18/tables/0/rows/12/c1": "Subdirectory containing permanent files for the statistics subsystem", "/versions/18/tables/0/rows/13/c1": "Subdirectory containing temporary files for the statistics subsystem", "/versions/18/tables/0/rows/14/c1": "Subdirectory containing subtransaction status data", "/versions/18/tables/0/rows/15/c1": "Subdirectory containing symbolic links to tablespaces", "/versions/18/tables/0/rows/16/c1": "Subdirectory containing state files for prepared transactions", "/versions/18/tables/0/rows/17/c1": "Subdirectory containing WAL (Write Ahead Log) files", "/versions/18/tables/0/rows/18/c1": "Subdirectory containing transaction commit status data", "/versions/18/tables/0/rows/19/c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM", "/versions/18/tables/0/rows/20/c1": "A file recording the command-line options the server was last started with", "/versions/18/tables/0/rows/21/c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)", "/versions/18/tables/0/columns/0/label": "Item", "/versions/18/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "8685c87dcbc9ef532d5f89e4db5917ae183ee72e37dbdbcd5f3d0dc01f7a5ad4", "canonical_center_text_hash": "43f8e5dbb0416cdc80ca814964d8a069f40fc24f776de73f7ac10c31151054b9"}, "description_zh": "\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002 \u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a PGDATA \uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002 PGDATA \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f /var/lib/pgsql/data \u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002 PGDATA \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982 \u8868 66.1 \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6 postgresql.conf \u3001 pg_hba.conf \u548c pg_ident.conf \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 PGDATA \u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002 \u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c PGDATA /base \u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 pg_database \u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002", "comparison_data": {"layouts": [{"key": "layout-0", "rows": [{"c0": "PG_VERSION", "c1": "A file containing the major version number of PostgreSQL"}, {"c0": "base", "c1": "Subdirectory containing per-database subdirectories"}, {"c0": "current_logfiles", "c1": "File recording the log file(s) currently written to by the logging collector"}, {"c0": "global", "c1": "Subdirectory containing cluster-wide tables, such as pg_database"}, {"c0": "pg_commit_ts", "c1": "Subdirectory containing transaction commit timestamp data"}, {"c0": "pg_dynshmem", "c1": "Subdirectory containing files used by the dynamic shared memory subsystem"}, {"c0": "pg_logical", "c1": "Subdirectory containing status data for logical decoding"}, {"c0": "pg_multixact", "c1": "Subdirectory containing multitransaction status data (used for shared row locks)"}, {"c0": "pg_notify", "c1": "Subdirectory containing LISTEN/NOTIFY status data"}, {"c0": "pg_replslot", "c1": "Subdirectory containing replication slot data"}, {"c0": "pg_serial", "c1": "Subdirectory containing information about committed serializable transactions"}, {"c0": "pg_snapshots", "c1": "Subdirectory containing exported snapshots"}, {"c0": "pg_stat", "c1": "Subdirectory containing permanent files for the statistics subsystem"}, {"c0": "pg_stat_tmp", "c1": "Subdirectory containing temporary files for the statistics subsystem"}, {"c0": "pg_subtrans", "c1": "Subdirectory containing subtransaction status data"}, {"c0": "pg_tblspc", "c1": "Subdirectory containing symbolic links to tablespaces"}, {"c0": "pg_twophase", "c1": "Subdirectory containing state files for prepared transactions"}, {"c0": "pg_wal", "c1": "Subdirectory containing WAL (Write Ahead Log) files"}, {"c0": "pg_xact", "c1": "Subdirectory containing transaction commit status data"}, {"c0": "postgresql.auto.conf", "c1": "A file used for storing configuration parameters that are set by ALTER SYSTEM"}, {"c0": "postmaster.opts", "c1": "A file recording the command-line options the server was last started with"}, {"c0": "postmaster.pid", "c1": "A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)"}], "title": "Contents of PGDATA", "columns": [{"key": "c0", "label": "Item"}, {"key": "c1", "label": "Description"}]}]}, "comparison_hash": "6a33c677ffbfe17d60a976fb592903ea0b99fc5b534b695392130aee3fceaff0", "manual_language": "zh", "description_zh_html": "<p>\u5b58\u50a8\u7ed3\u6784 storage-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/zh/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE\" rel=\"nofollow\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/zh/docs/18/storage-file-layout.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-file-layout\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n\u672c\u8282\u4ece\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5c42\u6b21\u63cf\u8ff0\u5b58\u50a8\u683c\u5f0f\u3002\n</p><p>\n\u4f20\u7edf\u4e0a\uff0c\u6570\u636e\u5e93\u96c6\u7c07\u6240\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u90fd\u5b58\u653e\u5728\u96c6\u7c07\u7684\u6570\u636e\u76ee\u5f55\u4e2d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u79f0\u4e3a <code>PGDATA</code>\uff08\u540d\u5b57\u6765\u81ea\u53ef\u7528\u4e8e\u5b9a\u4e49\u5b83\u7684\u73af\u5883\u53d8\u91cf\uff09\u3002<code>PGDATA</code> \u7684\u4e00\u4e2a\u5e38\u89c1\u4f4d\u7f6e\u662f\n<code>/var/lib/pgsql/data</code>\u3002\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\u7531\u4e0d\u540c\u670d\u52a1\u5668\u5b9e\u4f8b\u7ba1\u7406\u7684\u96c6\u7c07\u3002\n</p><p>\n<code>PGDATA</code> \u76ee\u5f55\u5305\u542b\u82e5\u5e72\u5b50\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff0c\u5982<a href=\"/docs/18/storage-file-layout.html#PGDATA-CONTENTS-TABLE\">\u8868\u00a066.1</a> \u6240\u793a\u3002\u9664\u8fd9\u4e9b\u5fc5\u9700\u9879\u4e4b\u5916\uff0c\u96c6\u7c07\u914d\u7f6e\u6587\u4ef6\n<code>postgresql.conf</code>\u3001<code>pg_hba.conf</code> \u548c\n<code>pg_ident.conf</code> \u4f20\u7edf\u4e0a\u4e5f\u5b58\u653e\u5728 <code>PGDATA</code>\n\u4e2d\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u628a\u5b83\u4eec\u653e\u5728\u5176\u4ed6\u5730\u65b9\u3002\n</p><p>\n\u5bf9\u4e8e\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6570\u636e\u5e93\uff0c<code>PGDATA</code><code>/base</code>\n\u4e2d\u90fd\u6709\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5176\u540d\u79f0\u662f\u8be5\u6570\u636e\u5e93\u5728 <code>pg_database</code>\n\u4e2d\u7684 OID\u3002\u8fd9\u4e2a\u5b50\u76ee\u5f55\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff1b\u7279\u522b\u662f\uff0c\u5b83\u7684\u7cfb\u7edf\u76ee\u5f55\u5c31\u5b58\u653e\u5728\u8fd9\u91cc\u3002\n</p><p><a href=\"/docs/18/storage-file-layout.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "12", "right": "13", "status": "changed", "diff": "--- PostgreSQL 12\n+++ PostgreSQL 13\n@@ -99,7 +99,7 @@\n         },\n         {\n           \"c0\": \"postmaster.pid\",\n-          \"c1\": \"A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (empty on Windows), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)\"\n+          \"c1\": \"A lock file recording the current postmaster process ID (PID), cluster data directory path, postmaster start timestamp, port number, Unix-domain socket directory path (could be empty), first valid listen_address (IP address or * , or empty if not listening on TCP), and shared memory segment ID (this file is not present after server shutdown)\"\n         }\n       ],\n       \"title\": \"Contents of PGDATA\""}}