{"kind": "tool", "major": "18", "item": {"slug": "pg-checksums", "name": "pg_checksums", "name_zh": "", "category": "\u670d\u52a1\u7aef\u7a0b\u5e8f", "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "aliases": ["pg_checksums"], "content_hash": "1c003e52513d47512d4c61bfc513e18764844e3781cada83720e40958fd3f439", "versions": {"12": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "12.22"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D directory", "--pgdata= directory"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D directory --pgdata= directory", "source_url": "/docs/12/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/12/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/12/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/12/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/12/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/12/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/12/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/12/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/12/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/12/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "12.22", "major": "12", "channel": "historical", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/12/postgresql-12-A4.pdf", "bytes": 13424351, "pages": 2803, "sha256": "7422cf53fd1939e7a3d2925231a88b0330e468afa5393627cac0ff86158a0621", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/12/postgresql-12-US.pdf", "bytes": 13322565, "pages": 2958, "sha256": "51f3b04e72907fc38512685946223452ea65f84419c60c66241dfa3396035e77", "built_at": "2026-09-26"}}, "tree": "12", "index": "index.html", "major": "12", "pages": 1131, "release": "12.22", "source_url": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "svg_assets": 2, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "revision": "7a827e97cbfacd7febff75f34443e2043e40723de5b6d8c9d81a9430b65a37e4", "evidence_kind": "English manual and source declarations", "source_sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sources": [{"url": "/docs/12/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "12.22 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "227bd278a0a1c348be37b328077beac0126143b03db30c9de7bbd1b2e47cbbd6"}, {"url": "/docs/12/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "7f6ae1fadc1b0bffa606551460e62aacdc2508a3fb66566ddae861928ca6080b"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/12/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "9fa3d6b3ff824d9a2078398a9c2bb1903300ba3629f9d936f913f6e831d96c74", "fragment_sha256": "6c9c599df0a1e4642ac71d183a14d2fc24ca473637282c5dff8a5e9053726636", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "f50e298bfc75f723bbbe5c664b7449bc9168332db02ec489802aa829849adb6d", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "7a827e97cbfacd7febff75f34443e2043e40723de5b6d8c9d81a9430b65a37e4"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "12.22"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "12", "text_hash": "266b96f0e528db7dedfa8b9519f244523f793a5ffcd8f3154b6fc1d91a7ed0d1", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "7a827e97cbfacd7febff75f34443e2043e40723de5b6d8c9d81a9430b65a37e4"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "12.22"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/12/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "9fa3d6b3ff824d9a2078398a9c2bb1903300ba3629f9d936f913f6e831d96c74", "fragment_sha256": "6c9c599df0a1e4642ac71d183a14d2fc24ca473637282c5dff8a5e9053726636", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "f50e298bfc75f723bbbe5c664b7449bc9168332db02ec489802aa829849adb6d", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "7a827e97cbfacd7febff75f34443e2043e40723de5b6d8c9d81a9430b65a37e4"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a</p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>directory</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>directory</code></em></code></span></dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span></dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span></dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span></dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span></dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span></dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span></dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span></dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/12/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "version": "12", "link_map": {"/zh/docs/12/app-pgchecksums.html": "/docs/12/app-pgchecksums.html"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a</p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span></dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span></dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span></dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span></dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span></dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span></dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span></dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span></dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span></dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span></dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/12/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "831ddbf23f34172d68155276f274ae4cdbef5a104fbbbc0e60bad10a5e663968", "content_hash": "266b96f0e528db7dedfa8b9519f244523f793a5ffcd8f3154b6fc1d91a7ed0d1", "source_database": "center", "source_revision": "7a827e97cbfacd7febff75f34443e2043e40723de5b6d8c9d81a9430b65a37e4"}, "signature": "pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/12/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/12/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "f3e3f3836fae7a4a6ca6d377d7b016353c67f2b3105781e5a71220d242859955", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/12/facts/0/label": "Documented executable", "/versions/12/facts/1/label": "Executable version", "/versions/12/facts/2/label": "Reference inventory", "/versions/12/facts/2/value": "Server applications", "/versions/12/facts/3/label": "Option definition groups", "/versions/12/tables/0/title": "Documented options", "/versions/12/tables/1/title": "Environment variables", "/versions/12/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/12/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/12/tables/0/rows/2/summary": "Disables checksums.", "/versions/12/tables/0/rows/3/summary": "Enables checksums.", "/versions/12/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/12/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/12/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/12/tables/0/rows/7/summary": "Enable verbose output. Lists all checked files.", "/versions/12/tables/0/rows/8/summary": "Print the pg_checksums version and exit.", "/versions/12/tables/0/rows/9/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/12/tables/0/columns/0/label": "Option and arguments", "/versions/12/tables/0/columns/1/label": "Description", "/versions/12/tables/1/columns/0/label": "Variable", "/versions/12/tables/1/columns/1/label": "Meaning", "/versions/12/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/12/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "5a3b28c839ffbcdddcc8ab9f06b17873fa27b1458bd8ab931ff99a2d9a96b29d", "canonical_center_text_hash": "266b96f0e528db7dedfa8b9519f244523f793a5ffcd8f3154b6fc1d91a7ed0d1"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "comparison_data": {"options": [{"names": ["-D directory", "--pgdata= directory"], "signature": "-D directory --pgdata= directory", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "dc177d5e3b70222dba48a916063353fd7bd6e09a1784594b268608ed54ea9e7a", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a</p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span></dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span></dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span></dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span></dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span></dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span></dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span></dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span></dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span></dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span></dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/12/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "13": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "13.23"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D directory", "--pgdata= directory"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D directory --pgdata= directory", "source_url": "/docs/13/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/13/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/13/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/13/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/13/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/13/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/13/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/13/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/13/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/13/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "historical", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/13/postgresql-13-A4.pdf", "bytes": 13843239, "pages": 2826, "sha256": "171cc09f90936dbc1cbd503a98ff07ae72ea58ab9771ff051313f1217737799c", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/13/postgresql-13-US.pdf", "bytes": 13739572, "pages": 2984, "sha256": "48d09c6e197d9db4220f41afe83efe848a8661b1b168d3b89419751ecaf6c24d", "built_at": "2026-09-26"}}, "tree": "13", "index": "index.html", "major": "13", "pages": 1139, "release": "13.23", "source_url": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "svg_assets": 3, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "revision": "614ee3133270254e476c118cdf6f72af78d4e4b8bbd9b28ed9ab1e14e4e9c0f6", "evidence_kind": "English manual and source declarations", "source_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sources": [{"url": "/docs/13/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "13.23 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "bbcd9ada6cdeebe1cf403334d113915cee5081cc4583e4dff5c39a16cfaa427d"}, {"url": "/docs/13/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "074ef8577fd368272a2360309e1226e2d0b1e570a3e1da62dfcca63ac9ee5539"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/13/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "b7731a51aacf550baa23cda89b2ed00c51a6ac862028a0ca284bb4e91549aa6c", "fragment_sha256": "6c9c599df0a1e4642ac71d183a14d2fc24ca473637282c5dff8a5e9053726636", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "e310dd5bceea4584f5eb624ccd13f04fe8f88aee8e5125bef04e55fc2a6496b9", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "614ee3133270254e476c118cdf6f72af78d4e4b8bbd9b28ed9ab1e14e4e9c0f6"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "13.23"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "13", "text_hash": "0787bd1cf252022bc188967e607531e826a4847bb0ea6c6bc1d685ae1354f43a", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "614ee3133270254e476c118cdf6f72af78d4e4b8bbd9b28ed9ab1e14e4e9c0f6"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "13.23"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/13/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "b7731a51aacf550baa23cda89b2ed00c51a6ac862028a0ca284bb4e91549aa6c", "fragment_sha256": "6c9c599df0a1e4642ac71d183a14d2fc24ca473637282c5dff8a5e9053726636", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "e310dd5bceea4584f5eb624ccd13f04fe8f88aee8e5125bef04e55fc2a6496b9", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "614ee3133270254e476c118cdf6f72af78d4e4b8bbd9b28ed9ab1e14e4e9c0f6"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a</p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>directory</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>directory</code></em></code></span></dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span></dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span></dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span></dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span></dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span></dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span></dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span></dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/13/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "version": "13", "link_map": {"/zh/docs/13/app-pgchecksums.html": "/docs/13/app-pgchecksums.html"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a</p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span></dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span></dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span></dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span></dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span></dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span></dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span></dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span></dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span></dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span></dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/13/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "8d23ca4db1c9b48ca3ea8d40e374f6a2342b8dbd22ce60d7bd68a080b1ab3a0e", "content_hash": "0787bd1cf252022bc188967e607531e826a4847bb0ea6c6bc1d685ae1354f43a", "source_database": "center", "source_revision": "614ee3133270254e476c118cdf6f72af78d4e4b8bbd9b28ed9ab1e14e4e9c0f6"}, "signature": "pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/13/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/13/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "92b9777af678984f282ccb8c9c4464d89adb2c6148dc9f07eb9a3c484944c776", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/13/facts/0/label": "Documented executable", "/versions/13/facts/1/label": "Executable version", "/versions/13/facts/2/label": "Reference inventory", "/versions/13/facts/2/value": "Server applications", "/versions/13/facts/3/label": "Option definition groups", "/versions/13/tables/0/title": "Documented options", "/versions/13/tables/1/title": "Environment variables", "/versions/13/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/13/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/13/tables/0/rows/2/summary": "Disables checksums.", "/versions/13/tables/0/rows/3/summary": "Enables checksums.", "/versions/13/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/13/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/13/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/13/tables/0/rows/7/summary": "Enable verbose output. Lists all checked files.", "/versions/13/tables/0/rows/8/summary": "Print the pg_checksums version and exit.", "/versions/13/tables/0/rows/9/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/13/tables/0/columns/0/label": "Option and arguments", "/versions/13/tables/0/columns/1/label": "Description", "/versions/13/tables/1/columns/0/label": "Variable", "/versions/13/tables/1/columns/1/label": "Meaning", "/versions/13/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/13/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "e0fd41644ec0ff98d00bc1d1c6de5eec854a3876ede0e6b50b63ab4946fc4dd7", "canonical_center_text_hash": "0787bd1cf252022bc188967e607531e826a4847bb0ea6c6bc1d685ae1354f43a"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "comparison_data": {"options": [{"names": ["-D directory", "--pgdata= directory"], "signature": "-D directory --pgdata= directory", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "dc177d5e3b70222dba48a916063353fd7bd6e09a1784594b268608ed54ea9e7a", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a</p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span></dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span></dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span></dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span></dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span></dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span></dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span></dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span></dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span></dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span></dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/13/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "14": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "14.24"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D directory", "--pgdata= directory"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D directory --pgdata= directory", "source_url": "/docs/14/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/14/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/14/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/14/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/14/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/14/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/14/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/14/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/14/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/14/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/14/postgresql-14-A4.pdf", "bytes": 14354704, "pages": 2944, "sha256": "8bc6b9dd7b246888bb77f0a5e8c39a2eae52e9926569832669c7d1600becb27c", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/14/postgresql-14-US.pdf", "bytes": 14242178, "pages": 3102, "sha256": "b7ecb5a5f62d8b9f73a69e25a7d26ba285373bc53168a553bff7b77955506db4", "built_at": "2026-09-26"}}, "tree": "14", "index": "index.html", "major": "14", "pages": 1158, "release": "14.24", "source_url": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "svg_assets": 3, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "revision": "588700d46356d8837c77c7c0a4e71e645fe6535983b8f1830aa8f2e4e41c40ae", "evidence_kind": "English manual and source declarations", "source_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sources": [{"url": "/docs/14/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "14.24 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "54c52f23b0e8a506574a9ee17afd63fa50ca361f0ddd064f188b7870953bb812"}, {"url": "/docs/14/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "db0cdccaa8d3c65ad3b2a07d4956eb5a783a18505bfa0f9d9626eef4ab94fe44"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/14/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "65acffd068f9716cf886562bfb7e183ee032f2704d94f67ca22153d135bfdc78", "fragment_sha256": "0a388b95410b2496611d5468775377e4bea6527eba9ff85b8ca0d415ed24ea8a", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "ef4880116edb6b84962b06458f1cbcd4851fb605a1222cf4c54956712ee7be15", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "588700d46356d8837c77c7c0a4e71e645fe6535983b8f1830aa8f2e4e41c40ae"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "14.24"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "14", "text_hash": "571d3802df550b4ffa334c47e01943f55b602a262da96bbdb924eba379530678", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "588700d46356d8837c77c7c0a4e71e645fe6535983b8f1830aa8f2e4e41c40ae"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "14.24"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/14/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "65acffd068f9716cf886562bfb7e183ee032f2704d94f67ca22153d135bfdc78", "fragment_sha256": "0a388b95410b2496611d5468775377e4bea6527eba9ff85b8ca0d415ed24ea8a", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "ef4880116edb6b84962b06458f1cbcd4851fb605a1222cf4c54956712ee7be15", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "588700d46356d8837c77c7c0a4e71e645fe6535983b8f1830aa8f2e4e41c40ae"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>directory</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/14/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "version": "14", "link_map": {"/zh/docs/14/app-pgchecksums.html": "/docs/14/app-pgchecksums.html"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/14/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "3ee229ff156adf9eb3b683209a511420522494442d16fbbb0fbe4a4fb81052a2", "content_hash": "571d3802df550b4ffa334c47e01943f55b602a262da96bbdb924eba379530678", "source_database": "center", "source_revision": "588700d46356d8837c77c7c0a4e71e645fe6535983b8f1830aa8f2e4e41c40ae"}, "signature": "pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/14/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/14/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "471d1b9369420cceaacad2db88604af4d153ba3e3ff5e2cce5ad45b58cb7a868", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/14/facts/0/label": "Documented executable", "/versions/14/facts/1/label": "Executable version", "/versions/14/facts/2/label": "Reference inventory", "/versions/14/facts/2/value": "Server applications", "/versions/14/facts/3/label": "Option definition groups", "/versions/14/tables/0/title": "Documented options", "/versions/14/tables/1/title": "Environment variables", "/versions/14/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/14/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/14/tables/0/rows/2/summary": "Disables checksums.", "/versions/14/tables/0/rows/3/summary": "Enables checksums.", "/versions/14/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/14/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/14/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/14/tables/0/rows/7/summary": "Enable verbose output. Lists all checked files.", "/versions/14/tables/0/rows/8/summary": "Print the pg_checksums version and exit.", "/versions/14/tables/0/rows/9/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/14/tables/0/columns/0/label": "Option and arguments", "/versions/14/tables/0/columns/1/label": "Description", "/versions/14/tables/1/columns/0/label": "Variable", "/versions/14/tables/1/columns/1/label": "Meaning", "/versions/14/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/14/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "d317486ee332ad0f882b1105ef98c2df30e54b696c37484754e077a8e4dfad55", "canonical_center_text_hash": "571d3802df550b4ffa334c47e01943f55b602a262da96bbdb924eba379530678"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "comparison_data": {"options": [{"names": ["-D directory", "--pgdata= directory"], "signature": "-D directory --pgdata= directory", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "dc177d5e3b70222dba48a916063353fd7bd6e09a1784594b268608ed54ea9e7a", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/14/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "15": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "15.19"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D directory", "--pgdata= directory"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D directory --pgdata= directory", "source_url": "/docs/15/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/15/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/15/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/15/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/15/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/15/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/15/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/15/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/15/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/15/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/15/postgresql-15-A4.pdf", "bytes": 14609140, "pages": 2987, "sha256": "66228564a4d16efb47d6a914085716ecfe22ca1566db56bc7c3d82f790646d72", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/15/postgresql-15-US.pdf", "bytes": 14495690, "pages": 3153, "sha256": "645a498c2390d47a6223ec74770631185807a19c484edb0fc5a295d9f460bc02", "built_at": "2026-09-26"}}, "tree": "15", "index": "index.html", "major": "15", "pages": 1168, "release": "15.19", "source_url": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "svg_assets": 3, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "revision": "6af958c6520151fc7697d56e0616b03fb00522c4568158674d452ae0644ba545", "evidence_kind": "English manual and source declarations", "source_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sources": [{"url": "/docs/15/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "15.19 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "2c83df8804201a1d1b6fc7dab1ca63871686b1a01ce0d735c580bbceff800b66"}, {"url": "/docs/15/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "1240cfbb13ebfd22aac8d5ae40c62a9015b246f7774bcf0bce97355ce06350a0"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/15/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "370b70ebdfc782d328d683f99ffd5cad8756ef5dc5cbed64373dea05005e8bad", "fragment_sha256": "f9b78b884a02cc6aa78269e26fdcc8919b0aba4ae00343c454b89b2617c77ffe", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "899a8a7dd022486d4277bd869883baa47e7354415a3fb4813a851e062c9b2ae0", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "6af958c6520151fc7697d56e0616b03fb00522c4568158674d452ae0644ba545"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "15.19"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "15", "text_hash": "ee371e7995553c7e2847bcc13147e22bd44f11fcf7ff3eec294b241c728e80ba", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "6af958c6520151fc7697d56e0616b03fb00522c4568158674d452ae0644ba545"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "15.19"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/15/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "370b70ebdfc782d328d683f99ffd5cad8756ef5dc5cbed64373dea05005e8bad", "fragment_sha256": "f9b78b884a02cc6aa78269e26fdcc8919b0aba4ae00343c454b89b2617c77ffe", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "899a8a7dd022486d4277bd869883baa47e7354415a3fb4813a851e062c9b2ae0", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "6af958c6520151fc7697d56e0616b03fb00522c4568158674d452ae0644ba545"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>directory</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/15/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "version": "15", "link_map": {"/zh/docs/15/app-pgchecksums.html": "/docs/15/app-pgchecksums.html"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/15/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "d2fe9c9a8ba6471b6e06ec914f867a9391a843e80f95da18390b17a8610ae58f", "content_hash": "ee371e7995553c7e2847bcc13147e22bd44f11fcf7ff3eec294b241c728e80ba", "source_database": "center", "source_revision": "6af958c6520151fc7697d56e0616b03fb00522c4568158674d452ae0644ba545"}, "signature": "pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/15/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/15/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "a845e540ab208f2b1f3e7999bb823a0ece1213154bdb595bc6615ae38c8d25f1", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/15/facts/0/label": "Documented executable", "/versions/15/facts/1/label": "Executable version", "/versions/15/facts/2/label": "Reference inventory", "/versions/15/facts/2/value": "Server applications", "/versions/15/facts/3/label": "Option definition groups", "/versions/15/tables/0/title": "Documented options", "/versions/15/tables/1/title": "Environment variables", "/versions/15/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/15/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/15/tables/0/rows/2/summary": "Disables checksums.", "/versions/15/tables/0/rows/3/summary": "Enables checksums.", "/versions/15/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/15/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/15/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/15/tables/0/rows/7/summary": "Enable verbose output. Lists all checked files.", "/versions/15/tables/0/rows/8/summary": "Print the pg_checksums version and exit.", "/versions/15/tables/0/rows/9/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/15/tables/0/columns/0/label": "Option and arguments", "/versions/15/tables/0/columns/1/label": "Description", "/versions/15/tables/1/columns/0/label": "Variable", "/versions/15/tables/1/columns/1/label": "Meaning", "/versions/15/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/15/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c49cf3ddbcbc05fe71f4e2f214ecd34deac70522adee72781e3aacc79db6cbd1", "canonical_center_text_hash": "ee371e7995553c7e2847bcc13147e22bd44f11fcf7ff3eec294b241c728e80ba"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "comparison_data": {"options": [{"names": ["-D directory", "--pgdata= directory"], "signature": "-D directory --pgdata= directory", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "dc177d5e3b70222dba48a916063353fd7bd6e09a1784594b268608ed54ea9e7a", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/15/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "16": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "16.15"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D directory", "--pgdata= directory"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D directory --pgdata= directory", "source_url": "/docs/16/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/16/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/16/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/16/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/16/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/16/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/16/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/16/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/16/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/16/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/16/postgresql-16-A4.pdf", "bytes": 15282337, "pages": 3055, "sha256": "4bb6c1f63deedac98736d8c4c7bc0fad0ac24e85b07e21ee10411872f06afd06", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/16/postgresql-16-US.pdf", "bytes": 15164148, "pages": 3220, "sha256": "5b6b6166c89991199e144bb0ae34c17a5f29826251dbf19db1abc0df3a3e771b", "built_at": "2026-09-26"}}, "tree": "16", "index": "index.html", "major": "16", "pages": 1169, "release": "16.15", "source_url": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "svg_assets": 3, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "revision": "3c21e58b35318021716440e67bb8bafd392b6a2b965a244d90e9e33c99e0bdef", "evidence_kind": "English manual and source declarations", "source_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sources": [{"url": "/docs/16/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "16.15 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "36e362f6ae0915dd10a98609d98a51e9dfe832d2f4a3ac45c1304de3627d4618"}, {"url": "/docs/16/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "8aaa4422eece8f26d84715f855d9d0f7f87b200f8b82898c73c865ee42c2c70f"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/16/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "6d492cf05138f5555f348a317cf2e7789d659044d4fa60767ac73a006be01043", "fragment_sha256": "f9b78b884a02cc6aa78269e26fdcc8919b0aba4ae00343c454b89b2617c77ffe", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "b97c1ce6fdcc047f85ecb22e7ef8b148d1d4500ffd607535f033b4df1e7b2a32", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "3c21e58b35318021716440e67bb8bafd392b6a2b965a244d90e9e33c99e0bdef"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "16.15"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "16", "text_hash": "c56b4dae9ba7e64cac511693167c842447522f2e49e38267f0646185f2751987", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "3c21e58b35318021716440e67bb8bafd392b6a2b965a244d90e9e33c99e0bdef"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "16.15"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/16/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "6d492cf05138f5555f348a317cf2e7789d659044d4fa60767ac73a006be01043", "fragment_sha256": "f9b78b884a02cc6aa78269e26fdcc8919b0aba4ae00343c454b89b2617c77ffe", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "b97c1ce6fdcc047f85ecb22e7ef8b148d1d4500ffd607535f033b4df1e7b2a32", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "3c21e58b35318021716440e67bb8bafd392b6a2b965a244d90e9e33c99e0bdef"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>directory</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/16/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "version": "16", "link_map": {"/zh/docs/16/app-pgchecksums.html": "/docs/16/app-pgchecksums.html"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/16/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "044c6f9720a4d80eccb9204525c2fb718b1ec7e93a6cddadf5fd2d9e7bc813e9", "content_hash": "c56b4dae9ba7e64cac511693167c842447522f2e49e38267f0646185f2751987", "source_database": "center", "source_revision": "3c21e58b35318021716440e67bb8bafd392b6a2b965a244d90e9e33c99e0bdef"}, "signature": "pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/16/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/16/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "8ff9cc34eb53c832042ae8cfea2c938d3a5625c6fb6578ec6e675dcaa9d7af3e", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/16/facts/0/label": "Documented executable", "/versions/16/facts/1/label": "Executable version", "/versions/16/facts/2/label": "Reference inventory", "/versions/16/facts/2/value": "Server applications", "/versions/16/facts/3/label": "Option definition groups", "/versions/16/tables/0/title": "Documented options", "/versions/16/tables/1/title": "Environment variables", "/versions/16/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/16/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/16/tables/0/rows/2/summary": "Disables checksums.", "/versions/16/tables/0/rows/3/summary": "Enables checksums.", "/versions/16/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/16/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/16/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/16/tables/0/rows/7/summary": "Enable verbose output. Lists all checked files.", "/versions/16/tables/0/rows/8/summary": "Print the pg_checksums version and exit.", "/versions/16/tables/0/rows/9/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/16/tables/0/columns/0/label": "Option and arguments", "/versions/16/tables/0/columns/1/label": "Description", "/versions/16/tables/1/columns/0/label": "Variable", "/versions/16/tables/1/columns/1/label": "Meaning", "/versions/16/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/16/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "bf7df5167e653e1f3ad2f52b1e0bfea5487538f1b9222d98b510692c1b8c3646", "canonical_center_text_hash": "c56b4dae9ba7e64cac511693167c842447522f2e49e38267f0646185f2751987"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002 -V --version \u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002 -? --help \u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "comparison_data": {"options": [{"names": ["-D directory", "--pgdata= directory"], "signature": "-D directory --pgdata= directory", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "dc177d5e3b70222dba48a916063353fd7bd6e09a1784594b268608ed54ea9e7a", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/16/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "17": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "17.11"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D directory", "--pgdata= directory"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D directory --pgdata= directory", "source_url": "/docs/17/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/17/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/17/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/17/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/17/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/17/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/17/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "signature": "--sync-method= method", "source_url": "/docs/17/app-pgchecksums.html", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/17/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/17/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/17/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/17/postgresql-17-A4.pdf", "bytes": 15521293, "pages": 3099, "sha256": "1991354df0dc89e70ec39328c28988ef8b19c6a93671dab3893650b63e9f4e36", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/17/postgresql-17-US.pdf", "bytes": 15398150, "pages": 3270, "sha256": "07696c8f38abf31babf22d2db337093936e7c472d2af36d050b000c49bbcf52c", "built_at": "2026-09-26"}}, "tree": "17", "index": "index.html", "major": "17", "pages": 1143, "release": "17.11", "source_url": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "svg_assets": 3, "source_mode": "en SGML built with pinned official archive", "source_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "revision": "58419c9b0dd42cb34c8d53695bb025a7e582edf55ccd4c5bcb1c2c7c71a37487", "evidence_kind": "English manual and source declarations", "source_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sources": [{"url": "/docs/17/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "17.11 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "088d4d799d0334e62132c19aff06daacb91becddfe984848ff5df2f73b68a31e"}, {"url": "/docs/17/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "01f07993ff020684f4c290d17cdafa26fb17ea5c1d476bc3a5efc68bf8ddd9b9"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/17/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "d8b275308b3968794064da416c4cee382a09da89c63fdea0cad3863ef0c172dc", "fragment_sha256": "79a65d3ff29aeeafd9b0e08843c6b8ce0640434818c33280000cc9a75633a773", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "227228bfe3b231f2e042fb5e71ac0ea7a2538000163c8f0f12322169dae59501", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "58419c9b0dd42cb34c8d53695bb025a7e582edf55ccd4c5bcb1c2c7c71a37487"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "17.11"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "17", "text_hash": "4fdf2a22d5c24f991292bc907b443aa86039377b0a911421a84493e704e9c6c6", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "58419c9b0dd42cb34c8d53695bb025a7e582edf55ccd4c5bcb1c2c7c71a37487"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "17.11"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/17/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "d8b275308b3968794064da416c4cee382a09da89c63fdea0cad3863ef0c172dc", "fragment_sha256": "79a65d3ff29aeeafd9b0e08843c6b8ce0640434818c33280000cc9a75633a773", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "227228bfe3b231f2e042fb5e71ac0ea7a2538000163c8f0f12322169dae59501", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "58419c9b0dd42cb34c8d53695bb025a7e582edf55ccd4c5bcb1c2c7c71a37487"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>directory</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">--sync-method=<em class=\"replaceable\"><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code class=\"literal\">fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code class=\"literal\">syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code class=\"literal\">syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a class=\"xref\" href=\"/zh/docs/17/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code class=\"option\">--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/17/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "version": "17", "link_map": {"/zh/docs/17/app-pgchecksums.html": "/docs/17/app-pgchecksums.html", "/zh/docs/17/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD": "/docs/17/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/17/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/17/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "725bbe47e69f38faa2716a5dbb009a48ef3376ee625fdb44f580cae9ba342a91", "content_hash": "4fdf2a22d5c24f991292bc907b443aa86039377b0a911421a84493e704e9c6c6", "source_database": "center", "source_revision": "58419c9b0dd42cb34c8d53695bb025a7e582edf55ccd4c5bcb1c2c7c71a37487"}, "signature": "pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/17/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/17/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "1d200901772970ffaaa86b8186ea4ef55564c67e922f1a2cf7f80006d91e0510", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[0]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[21]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/17/facts/0/label": "Documented executable", "/versions/17/facts/1/label": "Executable version", "/versions/17/facts/2/label": "Reference inventory", "/versions/17/facts/2/value": "Server applications", "/versions/17/facts/3/label": "Option definition groups", "/versions/17/tables/0/title": "Documented options", "/versions/17/tables/1/title": "Environment variables", "/versions/17/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/17/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/17/tables/0/rows/2/summary": "Disables checksums.", "/versions/17/tables/0/rows/3/summary": "Enables checksums.", "/versions/17/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/17/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/17/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/17/tables/0/rows/7/summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "/versions/17/tables/0/rows/8/summary": "Enable verbose output. Lists all checked files.", "/versions/17/tables/0/rows/9/summary": "Print the pg_checksums version and exit.", "/versions/17/tables/0/columns/0/label": "Option and arguments", "/versions/17/tables/0/columns/1/label": "Description", "/versions/17/tables/0/rows/10/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/17/tables/1/columns/0/label": "Variable", "/versions/17/tables/1/columns/1/label": "Meaning", "/versions/17/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/17/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "d592fd62e5e0ec21975e7c6c0344239502f989e3fa1f856fd7d9780f762a4a5b", "canonical_center_text_hash": "4fdf2a22d5c24f991292bc907b443aa86039377b0a911421a84493e704e9c6c6"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "comparison_data": {"options": [{"names": ["-D directory", "--pgdata= directory"], "signature": "-D directory --pgdata= directory", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "signature": "--sync-method= method", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "9df98d0a65050d461414d0c4fc42b1f97bbb808ec68690d4aad884d9b571bb05", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/17/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/17/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "18": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "18.6"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D directory", "--pgdata= directory"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D directory --pgdata= directory", "source_url": "/docs/18/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/18/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/18/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/18/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/18/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/18/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/18/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "signature": "--sync-method= method", "source_url": "/docs/18/app-pgchecksums.html", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/18/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/18/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/18/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/18/postgresql-18-A4.pdf", "bytes": 15865106, "pages": 3154, "sha256": "19512c405da53f9f7fcf0abba359223aa65f021be025bf3411381918f92e3190", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/18/postgresql-18-US.pdf", "bytes": 15748059, "pages": 3328, "sha256": "facbe6c229e598b872d3d98bef53308f46e06746006fa4590de9a7de9dd46319", "built_at": "2026-09-26"}}, "tree": "18", "index": "index.html", "major": "18", "pages": 1148, "release": "18.6", "source_url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "svg_assets": 3, "source_mode": "en SGML built with pinned official archive", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8", "evidence_kind": "English manual and source declarations", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "/docs/18/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "18.6 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "b16216257df55c09f6cc76f43a9c8ac811fda49b3a4490608f936681aa3cd4c2"}, {"url": "/docs/18/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "e9f8bbcc8e3641fadd1d20991e8aad6b532155b786ba5a1b7b364ec4f1a5bef3"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "bedb5cc019cf0b63b7447217fd38288cc6393371e06f359b6085ef209c1844bd", "fragment_sha256": "335cf5baa6abd60267b7d7e36f247e760def9d836570dfd6759e86297dd4a693", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "26d765fdb2c2b617db49f88701585b8e0b3d9ea1fa817a690bcb7c7478d28a4f", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "18.6"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "18", "text_hash": "f32430bc969bf99c7f631c62fd8f7863c3881ef8bef620676c150775831b5420", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "18.6"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "bedb5cc019cf0b63b7447217fd38288cc6393371e06f359b6085ef209c1844bd", "fragment_sha256": "335cf5baa6abd60267b7d7e36f247e760def9d836570dfd6759e86297dd4a693", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "26d765fdb2c2b617db49f88701585b8e0b3d9ea1fa817a690bcb7c7478d28a4f", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>directory</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">--sync-method=<em class=\"replaceable\"><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code class=\"literal\">fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code class=\"literal\">syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code class=\"literal\">syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a class=\"xref\" href=\"/zh/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code class=\"option\">--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/18/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "version": "18", "link_map": {"/zh/docs/18/app-pgchecksums.html": "/docs/18/app-pgchecksums.html", "/zh/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD": "/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/18/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "48f7d61431c73f16508bee6a0232c08da207ca4fcd8334d34ca84afb6eede5f8", "content_hash": "f32430bc969bf99c7f631c62fd8f7863c3881ef8bef620676c150775831b5420", "source_database": "center", "source_revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}, "signature": "pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "52fc2b5e6f0927d14e93093316ac2b48c1d0462af868c84be88447880d4084d8", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[0]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[21]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/18/facts/0/label": "Documented executable", "/versions/18/facts/1/label": "Executable version", "/versions/18/facts/2/label": "Reference inventory", "/versions/18/facts/2/value": "Server applications", "/versions/18/facts/3/label": "Option definition groups", "/versions/18/tables/0/title": "Documented options", "/versions/18/tables/1/title": "Environment variables", "/versions/18/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/18/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/18/tables/0/rows/2/summary": "Disables checksums.", "/versions/18/tables/0/rows/3/summary": "Enables checksums.", "/versions/18/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/18/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/18/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/18/tables/0/rows/7/summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "/versions/18/tables/0/rows/8/summary": "Enable verbose output. Lists all checked files.", "/versions/18/tables/0/rows/9/summary": "Print the pg_checksums version and exit.", "/versions/18/tables/0/columns/0/label": "Option and arguments", "/versions/18/tables/0/columns/1/label": "Description", "/versions/18/tables/0/rows/10/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/18/tables/1/columns/0/label": "Variable", "/versions/18/tables/1/columns/1/label": "Meaning", "/versions/18/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/18/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1570dedca3f150c2d02227d960e298ed7c57e2f1c4e831380a65315aa1f00fb8", "canonical_center_text_hash": "f32430bc969bf99c7f631c62fd8f7863c3881ef8bef620676c150775831b5420"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "comparison_data": {"options": [{"names": ["-D directory", "--pgdata= directory"], "signature": "-D directory --pgdata= directory", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "signature": "--sync-method= method", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "9df98d0a65050d461414d0c4fc42b1f97bbb808ec68690d4aad884d9b571bb05", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/18/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/docs/18/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "19": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "19rc1"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-D datadir --pgdata= datadir"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D datadir", "--pgdata= datadir"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D datadir --pgdata= datadir", "source_url": "/docs/19/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/19/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/19/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/19/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/19/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/19/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/19/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "signature": "--sync-method= method", "source_url": "/docs/19/app-pgchecksums.html", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/19/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/19/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/19/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "label": "19rc1", "major": "19", "channel": "preview", "manifest": {"major": "19", "release": "19rc1", "source_url": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "source_sha256": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "revision": "d18947140876810d6024d5349bfc5822da04a1b923777cac5009d0665d889008", "evidence_kind": "English manual and source declarations", "source_sha256": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sources": [{"url": "/docs/19/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "19rc1 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "544d5202a70da64fd626cff54509cd497878d142bbba97a6e6b9ab9a6603e3d7"}, {"url": "/docs/19/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "3670173acada00f2cee0b0622a4ad231d7e5fa583f81d5d5b96cd17069e1dd9b"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/19/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "70bb8b376ab0ec253d3d80e621c11eecf867c619f1157ea55565cdc3afd173af", "fragment_sha256": "1c81022119699bd8576e5c1138bb9615cd77156d49cfe66ec3584cb051de2f71", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "b22c86ed6e3caaf55af59b5c789a8725635e71ffde13984adb429f85c2c4c3bd", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "d18947140876810d6024d5349bfc5822da04a1b923777cac5009d0665d889008"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "19rc1"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "19", "text_hash": "3e8858838c4512869ab1da4e1f194ceffbe0eaf301a12fd5c6a06fb58b745311", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "d18947140876810d6024d5349bfc5822da04a1b923777cac5009d0665d889008"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "19rc1"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-D datadir --pgdata= datadir"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/19/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "70bb8b376ab0ec253d3d80e621c11eecf867c619f1157ea55565cdc3afd173af", "fragment_sha256": "1c81022119699bd8576e5c1138bb9615cd77156d49cfe66ec3584cb051de2f71", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "b22c86ed6e3caaf55af59b5c789a8725635e71ffde13984adb429f85c2c4c3bd", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "d18947140876810d6024d5349bfc5822da04a1b923777cac5009d0665d889008"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u6709\u5173\u6570\u636e\u6821\u9a8c\u548c\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1 \u7b2c 28.2 \u8282 \u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D datadir --pgdata= datadir \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --ver", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span>\n   \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span>\n   \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u6709\u5173\u6570\u636e\u6821\u9a8c\u548c\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1<a class=\"xref\" href=\"/zh/docs/19/checksums.html\">\u7b2c\u00a028.2\u00a0\u8282</a>\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>datadir</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>datadir</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">--sync-method=<em class=\"replaceable\"><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code class=\"literal\">fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code class=\"literal\">syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code class=\"literal\">syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a class=\"xref\" href=\"/zh/docs/19/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code class=\"option\">--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/19/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u6709\u5173\u6570\u636e\u6821\u9a8c\u548c\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1 \u7b2c 28.2 \u8282 \u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D datadir --pgdata= datadir \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --ver", "version": "19", "link_map": {"/zh/docs/19/checksums.html": "/docs/19/checksums.html", "/zh/docs/19/app-pgchecksums.html": "/docs/19/app-pgchecksums.html", "/zh/docs/19/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD": "/docs/19/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span>\n   \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span>\n   \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u6709\u5173\u6570\u636e\u6821\u9a8c\u548c\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1<a href=\"/zh/docs/19/checksums.html\" rel=\"nofollow\">\u7b2c\u00a028.2\u00a0\u8282</a>\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>datadir</code></em></code><br/></span><span><code>--pgdata=<em><code>datadir</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/19/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/19/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "fa55498466299a9f90953afd3f3cc0fd9accf4cc2153d641dce353694f3457e3", "content_hash": "3e8858838c4512869ab1da4e1f194ceffbe0eaf301a12fd5c6a06fb58b745311", "source_database": "center", "source_revision": "d18947140876810d6024d5349bfc5822da04a1b923777cac5009d0665d889008"}, "signature": "pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-D datadir --pgdata= datadir"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/19/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u6709\u5173\u6570\u636e\u6821\u9a8c\u548c\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1 \u7b2c 28.2 \u8282 \u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D datadir --pgdata= datadir \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --ver"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/19/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "d6e7546c8fb5b8da88029ffd57b250e3d8873800926127cd75205c053a443511", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[0]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[21]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]", "#APP-PGCHECKSUMS/div[7]/p[4]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/19/facts/0/label": "Documented executable", "/versions/19/facts/1/label": "Executable version", "/versions/19/facts/2/label": "Reference inventory", "/versions/19/facts/2/value": "Server applications", "/versions/19/facts/3/label": "Option definition groups", "/versions/19/tables/0/title": "Documented options", "/versions/19/tables/1/title": "Environment variables", "/versions/19/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/19/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/19/tables/0/rows/2/summary": "Disables checksums.", "/versions/19/tables/0/rows/3/summary": "Enables checksums.", "/versions/19/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/19/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/19/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/19/tables/0/rows/7/summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "/versions/19/tables/0/rows/8/summary": "Enable verbose output. Lists all checked files.", "/versions/19/tables/0/rows/9/summary": "Print the pg_checksums version and exit.", "/versions/19/tables/0/columns/0/label": "Option and arguments", "/versions/19/tables/0/columns/1/label": "Description", "/versions/19/tables/0/rows/10/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/19/tables/1/columns/0/label": "Variable", "/versions/19/tables/1/columns/1/label": "Meaning", "/versions/19/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/19/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "83e12441a658855e71f6136e82c7f7f8bb607339139e53f3a269ef265b0fa8f2", "canonical_center_text_hash": "3e8858838c4512869ab1da4e1f194ceffbe0eaf301a12fd5c6a06fb58b745311"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u6709\u5173\u6570\u636e\u6821\u9a8c\u548c\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1 \u7b2c 28.2 \u8282 \u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D datadir --pgdata= datadir \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --ver", "comparison_data": {"options": [{"names": ["-D datadir", "--pgdata= datadir"], "signature": "-D datadir --pgdata= datadir", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "signature": "--sync-method= method", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "b78f786be12c8dfb559cec46b186c2035be9748e1a181f507423aca26d8746fb", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span>\n   \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span>\n   \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u6709\u5173\u6570\u636e\u6821\u9a8c\u548c\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1<a href=\"/zh/docs/19/checksums.html\" rel=\"nofollow\">\u7b2c\u00a028.2\u00a0\u8282</a>\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>datadir</code></em></code><br/></span><span><code>--pgdata=<em><code>datadir</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/19/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/19/app-pgchecksums.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": "d18947140876810d6024d5349bfc5822da04a1b923777cac5009d0665d889008", "previous_source_revision": "1bbbbf4133d426f0e4304010688d2984c30fb67df0cc3a61b3e37eb3f6f37833"}}, "20": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "20devel"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-D datadir --pgdata= datadir"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D datadir", "--pgdata= datadir"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D datadir --pgdata= datadir", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/devel/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "signature": "--sync-method= method", "source_url": "/docs/devel/app-pgchecksums.html", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/devel/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "manifest": {"major": "20", "release": "20devel", "source_url": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "source_sha256": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "revision": "1a7c6c7636e5e62d87e76e3586ffcfdfba79093ddd5daa598c7f722ccfa45d5d", "evidence_kind": "English manual and source declarations", "source_sha256": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sources": [{"url": "/docs/devel/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "20devel English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "bd0617f8ec7bc6e880e0a7ebd70f92e2279e09d514989f2b9ce32b990f01d1c7"}, {"url": "/docs/devel/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "1fce063747a6c9ad86e43068df4310d514cf97dfdf8e758d2957ec46df080cf6"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/devel/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "77815c7cb3b7e9afc6e6f17e494c540044dc9b2b07140e430229d9c65338e098", "fragment_sha256": "b0de9640a3e0f943d9e3faa0698950b19a9b3209fedab09f4fe00b545b73ed01", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "f14d018cec44d80ea024ae6e1d480b3a5a7bbaa276255eda09528103bb71b6b3", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "1a7c6c7636e5e62d87e76e3586ffcfdfba79093ddd5daa598c7f722ccfa45d5d"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "20devel"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "20", "text_hash": "89dfbf5a81488ea7d126e889d80cc325b458e42d84e0e5a23b7943da625671f6", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "1a7c6c7636e5e62d87e76e3586ffcfdfba79093ddd5daa598c7f722ccfa45d5d"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "20devel"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-D datadir --pgdata= datadir"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/devel/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "77815c7cb3b7e9afc6e6f17e494c540044dc9b2b07140e430229d9c65338e098", "fragment_sha256": "b0de9640a3e0f943d9e3faa0698950b19a9b3209fedab09f4fe00b545b73ed01", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "f14d018cec44d80ea024ae6e1d480b3a5a7bbaa276255eda09528103bb71b6b3", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "1a7c6c7636e5e62d87e76e3586ffcfdfba79093ddd5daa598c7f722ccfa45d5d"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u4e5f\u53ef\u4ee5\u5728\u96c6\u7c07\u8fd0\u884c\u671f\u95f4\u542f\u7528\u6821\u9a8c\u548c\uff0c\u5177\u4f53\u8fc7\u7a0b\u89c1 Online Enabling of Checksums \uff1b\u6709\u5173\u4e0d\u540c\u65b9\u6cd5\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1 \u7b2c 28.2 \u8282 \u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5982\u679c\u96c6\u7c07\u5173\u95ed\u65f6\u6b63\u5904\u4e8e Online Enabling of Checksums \u6240\u8ff0\u7684\u5728\u7ebf\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u63a7\u5236\u6587\u4ef6\u4ecd\u4f1a\u8bb0\u5f55\u8be5\u4e2d\u65ad\u72b6\u6001\uff0c pg_checksums \u5c06\u62d2\u7edd\u4ee5\u4efb\u4f55\u6a21\u5f0f\u8fd0\u884c\u3002\u8bf7\u542f\u52a8\u96c6\u7c07\u5e76\u5c06\u5176\u5e72\u51c0\u5173\u95ed\u4ee5\u91cd\u7f6e\u8be5\u72b6\u6001\uff0c\u7136\u540e\u91cd\u8bd5\uff1b\u5728\u5907\u5e93\u4e0a\uff0c\u8bf7\u5148\u8ba9\u590d\u5236\u5b8c\u6210\u8be5\u8f6c\u6362\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D datadir --pgdata= datadir \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums ", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span>\n   \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span>\n   \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u4e5f\u53ef\u4ee5\u5728\u96c6\u7c07\u8fd0\u884c\u671f\u95f4\u542f\u7528\u6821\u9a8c\u548c\uff0c\u5177\u4f53\u8fc7\u7a0b\u89c1 <a class=\"xref\" href=\"/zh/docs/devel/checksums.html#CHECKSUMS-ONLINE-ENABLE-DISABLE\">Online Enabling of Checksums</a>\uff1b\u6709\u5173\u4e0d\u540c\u65b9\u6cd5\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1<a class=\"xref\" href=\"/zh/docs/devel/checksums.html\">\u7b2c\u00a028.2\u00a0\u8282</a>\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5982\u679c\u96c6\u7c07\u5173\u95ed\u65f6\u6b63\u5904\u4e8e <a class=\"xref\" href=\"/zh/docs/devel/checksums.html#CHECKSUMS-ONLINE-ENABLE-DISABLE\">Online Enabling of Checksums</a> \u6240\u8ff0\u7684\u5728\u7ebf\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u63a7\u5236\u6587\u4ef6\u4ecd\u4f1a\u8bb0\u5f55\u8be5\u4e2d\u65ad\u72b6\u6001\uff0c<span class=\"application\">pg_checksums</span> \u5c06\u62d2\u7edd\u4ee5\u4efb\u4f55\u6a21\u5f0f\u8fd0\u884c\u3002\u8bf7\u542f\u52a8\u96c6\u7c07\u5e76\u5c06\u5176\u5e72\u51c0\u5173\u95ed\u4ee5\u91cd\u7f6e\u8be5\u72b6\u6001\uff0c\u7136\u540e\u91cd\u8bd5\uff1b\u5728\u5907\u5e93\u4e0a\uff0c\u8bf7\u5148\u8ba9\u590d\u5236\u5b8c\u6210\u8be5\u8f6c\u6362\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>datadir</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>datadir</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">--sync-method=<em class=\"replaceable\"><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code class=\"literal\">fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code class=\"literal\">syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code class=\"literal\">syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a class=\"xref\" href=\"/zh/docs/devel/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code class=\"option\">--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/devel/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u4e5f\u53ef\u4ee5\u5728\u96c6\u7c07\u8fd0\u884c\u671f\u95f4\u542f\u7528\u6821\u9a8c\u548c\uff0c\u5177\u4f53\u8fc7\u7a0b\u89c1 Online Enabling of Checksums \uff1b\u6709\u5173\u4e0d\u540c\u65b9\u6cd5\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1 \u7b2c 28.2 \u8282 \u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5982\u679c\u96c6\u7c07\u5173\u95ed\u65f6\u6b63\u5904\u4e8e Online Enabling of Checksums \u6240\u8ff0\u7684\u5728\u7ebf\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u63a7\u5236\u6587\u4ef6\u4ecd\u4f1a\u8bb0\u5f55\u8be5\u4e2d\u65ad\u72b6\u6001\uff0c pg_checksums \u5c06\u62d2\u7edd\u4ee5\u4efb\u4f55\u6a21\u5f0f\u8fd0\u884c\u3002\u8bf7\u542f\u52a8\u96c6\u7c07\u5e76\u5c06\u5176\u5e72\u51c0\u5173\u95ed\u4ee5\u91cd\u7f6e\u8be5\u72b6\u6001\uff0c\u7136\u540e\u91cd\u8bd5\uff1b\u5728\u5907\u5e93\u4e0a\uff0c\u8bf7\u5148\u8ba9\u590d\u5236\u5b8c\u6210\u8be5\u8f6c\u6362\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D datadir --pgdata= datadir \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums ", "version": "20", "link_map": {"/zh/docs/devel/checksums.html": "/docs/devel/checksums.html", "/zh/docs/devel/app-pgchecksums.html": "/docs/devel/app-pgchecksums.html", "/zh/docs/devel/checksums.html#CHECKSUMS-ONLINE-ENABLE-DISABLE": "/docs/devel/checksums.html#CHECKSUMS-ONLINE-ENABLE-DISABLE", "/zh/docs/devel/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD": "/docs/devel/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span>\n   \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span>\n   \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u4e5f\u53ef\u4ee5\u5728\u96c6\u7c07\u8fd0\u884c\u671f\u95f4\u542f\u7528\u6821\u9a8c\u548c\uff0c\u5177\u4f53\u8fc7\u7a0b\u89c1 <a href=\"/zh/docs/devel/checksums.html#CHECKSUMS-ONLINE-ENABLE-DISABLE\" rel=\"nofollow\">Online Enabling of Checksums</a>\uff1b\u6709\u5173\u4e0d\u540c\u65b9\u6cd5\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1<a href=\"/zh/docs/devel/checksums.html\" rel=\"nofollow\">\u7b2c\u00a028.2\u00a0\u8282</a>\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5982\u679c\u96c6\u7c07\u5173\u95ed\u65f6\u6b63\u5904\u4e8e <a href=\"/zh/docs/devel/checksums.html#CHECKSUMS-ONLINE-ENABLE-DISABLE\" rel=\"nofollow\">Online Enabling of Checksums</a> \u6240\u8ff0\u7684\u5728\u7ebf\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u63a7\u5236\u6587\u4ef6\u4ecd\u4f1a\u8bb0\u5f55\u8be5\u4e2d\u65ad\u72b6\u6001\uff0c<span>pg_checksums</span> \u5c06\u62d2\u7edd\u4ee5\u4efb\u4f55\u6a21\u5f0f\u8fd0\u884c\u3002\u8bf7\u542f\u52a8\u96c6\u7c07\u5e76\u5c06\u5176\u5e72\u51c0\u5173\u95ed\u4ee5\u91cd\u7f6e\u8be5\u72b6\u6001\uff0c\u7136\u540e\u91cd\u8bd5\uff1b\u5728\u5907\u5e93\u4e0a\uff0c\u8bf7\u5148\u8ba9\u590d\u5236\u5b8c\u6210\u8be5\u8f6c\u6362\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>datadir</code></em></code><br/></span><span><code>--pgdata=<em><code>datadir</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/devel/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/devel/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "d53bf99f2139bf2dacf13a7c3500f5e88195d6493579b2f8c2caa4664619df6f", "content_hash": "89dfbf5a81488ea7d126e889d80cc325b458e42d84e0e5a23b7943da625671f6", "source_database": "center", "source_revision": "1a7c6c7636e5e62d87e76e3586ffcfdfba79093ddd5daa598c7f722ccfa45d5d"}, "signature": "pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-D datadir --pgdata= datadir"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/devel/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u4e5f\u53ef\u4ee5\u5728\u96c6\u7c07\u8fd0\u884c\u671f\u95f4\u542f\u7528\u6821\u9a8c\u548c\uff0c\u5177\u4f53\u8fc7\u7a0b\u89c1 Online Enabling of Checksums \uff1b\u6709\u5173\u4e0d\u540c\u65b9\u6cd5\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1 \u7b2c 28.2 \u8282 \u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5982\u679c\u96c6\u7c07\u5173\u95ed\u65f6\u6b63\u5904\u4e8e Online Enabling of Checksums \u6240\u8ff0\u7684\u5728\u7ebf\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u63a7\u5236\u6587\u4ef6\u4ecd\u4f1a\u8bb0\u5f55\u8be5\u4e2d\u65ad\u72b6\u6001\uff0c pg_checksums \u5c06\u62d2\u7edd\u4ee5\u4efb\u4f55\u6a21\u5f0f\u8fd0\u884c\u3002\u8bf7\u542f\u52a8\u96c6\u7c07\u5e76\u5c06\u5176\u5e72\u51c0\u5173\u95ed\u4ee5\u91cd\u7f6e\u8be5\u72b6\u6001\uff0c\u7136\u540e\u91cd\u8bd5\uff1b\u5728\u5907\u5e93\u4e0a\uff0c\u8bf7\u5148\u8ba9\u590d\u5236\u5b8c\u6210\u8be5\u8f6c\u6362\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D datadir --pgdata= datadir \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums "], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/devel/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "2c1a35b6323aece9f02c0948647afb7d0079b3afa35e63aa0693cb06d1393b52", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[4]/p[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[0]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[21]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/div[3]/ol[0]/li[0]", "#APP-PGCHECKSUMS/div[7]/div[3]/ol[0]/li[1]", "#APP-PGCHECKSUMS/div[7]/div[3]/ol[0]/li[2]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[4]", "#APP-PGCHECKSUMS/div[7]/p[5]", "#APP-PGCHECKSUMS/div[7]/p[6]", "#APP-PGCHECKSUMS/div[7]/p[7]", "#APP-PGCHECKSUMS/div[7]/p[8]", "#APP-PGCHECKSUMS/div[7]/p[9]"]}], "language": "zh", "original_text": {"/summary": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/category": "Server applications", "/versions/20/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/20/facts/0/label": "Documented executable", "/versions/20/facts/1/label": "Executable version", "/versions/20/facts/2/label": "Reference inventory", "/versions/20/facts/2/value": "Server applications", "/versions/20/facts/3/label": "Option definition groups", "/versions/20/tables/0/title": "Documented options", "/versions/20/tables/1/title": "Environment variables", "/versions/20/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/20/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/20/tables/0/rows/2/summary": "Disables checksums.", "/versions/20/tables/0/rows/3/summary": "Enables checksums.", "/versions/20/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/20/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/20/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/20/tables/0/rows/7/summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "/versions/20/tables/0/rows/8/summary": "Enable verbose output. Lists all checked files.", "/versions/20/tables/0/rows/9/summary": "Print the pg_checksums version and exit.", "/versions/20/tables/0/columns/0/label": "Option and arguments", "/versions/20/tables/0/columns/1/label": "Description", "/versions/20/tables/0/rows/10/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/20/tables/1/columns/0/label": "Variable", "/versions/20/tables/1/columns/1/label": "Meaning", "/versions/20/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/20/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "8cf1ade15a4113cc3019a94c33bff4723d446875cb96233dc2809010b208ab17", "canonical_center_text_hash": "89dfbf5a81488ea7d126e889d80cc325b458e42d84e0e5a23b7943da625671f6"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u4e5f\u53ef\u4ee5\u5728\u96c6\u7c07\u8fd0\u884c\u671f\u95f4\u542f\u7528\u6821\u9a8c\u548c\uff0c\u5177\u4f53\u8fc7\u7a0b\u89c1 Online Enabling of Checksums \uff1b\u6709\u5173\u4e0d\u540c\u65b9\u6cd5\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1 \u7b2c 28.2 \u8282 \u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5982\u679c\u96c6\u7c07\u5173\u95ed\u65f6\u6b63\u5904\u4e8e Online Enabling of Checksums \u6240\u8ff0\u7684\u5728\u7ebf\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u63a7\u5236\u6587\u4ef6\u4ecd\u4f1a\u8bb0\u5f55\u8be5\u4e2d\u65ad\u72b6\u6001\uff0c pg_checksums \u5c06\u62d2\u7edd\u4ee5\u4efb\u4f55\u6a21\u5f0f\u8fd0\u884c\u3002\u8bf7\u542f\u52a8\u96c6\u7c07\u5e76\u5c06\u5176\u5e72\u51c0\u5173\u95ed\u4ee5\u91cd\u7f6e\u8be5\u72b6\u6001\uff0c\u7136\u540e\u91cd\u8bd5\uff1b\u5728\u5907\u5e93\u4e0a\uff0c\u8bf7\u5148\u8ba9\u590d\u5236\u5b8c\u6210\u8be5\u8f6c\u6362\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D datadir --pgdata= datadir \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums ", "comparison_data": {"options": [{"names": ["-D datadir", "--pgdata= datadir"], "signature": "-D datadir --pgdata= datadir", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "signature": "--sync-method= method", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "b78f786be12c8dfb559cec46b186c2035be9748e1a181f507423aca26d8746fb", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [ [ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span>\n   \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span>\n   \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u4e5f\u53ef\u4ee5\u5728\u96c6\u7c07\u8fd0\u884c\u671f\u95f4\u542f\u7528\u6821\u9a8c\u548c\uff0c\u5177\u4f53\u8fc7\u7a0b\u89c1 <a href=\"/zh/docs/devel/checksums.html#CHECKSUMS-ONLINE-ENABLE-DISABLE\" rel=\"nofollow\">Online Enabling of Checksums</a>\uff1b\u6709\u5173\u4e0d\u540c\u65b9\u6cd5\u7684\u66f4\u591a\u7ec6\u8282\uff0c\u53c2\u89c1<a href=\"/zh/docs/devel/checksums.html\" rel=\"nofollow\">\u7b2c\u00a028.2\u00a0\u8282</a>\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5982\u679c\u96c6\u7c07\u5173\u95ed\u65f6\u6b63\u5904\u4e8e <a href=\"/zh/docs/devel/checksums.html#CHECKSUMS-ONLINE-ENABLE-DISABLE\" rel=\"nofollow\">Online Enabling of Checksums</a> \u6240\u8ff0\u7684\u5728\u7ebf\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u63a7\u5236\u6587\u4ef6\u4ecd\u4f1a\u8bb0\u5f55\u8be5\u4e2d\u65ad\u72b6\u6001\uff0c<span>pg_checksums</span> \u5c06\u62d2\u7edd\u4ee5\u4efb\u4f55\u6a21\u5f0f\u8fd0\u884c\u3002\u8bf7\u542f\u52a8\u96c6\u7c07\u5e76\u5c06\u5176\u5e72\u51c0\u5173\u95ed\u4ee5\u91cd\u7f6e\u8be5\u72b6\u6001\uff0c\u7136\u540e\u91cd\u8bd5\uff1b\u5728\u5907\u5e93\u4e0a\uff0c\u8bf7\u5148\u8ba9\u590d\u5236\u5b8c\u6210\u8be5\u8f6c\u6362\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>datadir</code></em></code><br/></span><span><code>--pgdata=<em><code>datadir</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/devel/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/devel/app-pgchecksums.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": "1a7c6c7636e5e62d87e76e3586ffcfdfba79093ddd5daa598c7f722ccfa45d5d", "previous_source_revision": "2eba5e0fd4c3bffb2803247b6cd537878e9d6ee5a6dfbe3c50ece8b421b80918"}}}}, "snapshot": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "18.6"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "options": [{"names": ["-D directory", "--pgdata= directory"], "summary": "Specifies the directory where the database cluster is stored.", "signature": "-D directory --pgdata= directory", "source_url": "/docs/18/app-pgchecksums.html", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "summary": "Checks checksums. This is the default mode if nothing else is specified.", "signature": "-c --check", "source_url": "/docs/18/app-pgchecksums.html", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "summary": "Disables checksums.", "signature": "-d --disable", "source_url": "/docs/18/app-pgchecksums.html", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "summary": "Enables checksums.", "signature": "-e --enable", "source_url": "/docs/18/app-pgchecksums.html", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "summary": "Only validate checksums in the relation with filenode filenode .", "signature": "-f filenode --filenode= filenode", "source_url": "/docs/18/app-pgchecksums.html", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "signature": "-N --no-sync", "source_url": "/docs/18/app-pgchecksums.html", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "signature": "-P --progress", "source_url": "/docs/18/app-pgchecksums.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "signature": "--sync-method= method", "source_url": "/docs/18/app-pgchecksums.html", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "summary": "Enable verbose output. Lists all checked files.", "signature": "-v --verbose", "source_url": "/docs/18/app-pgchecksums.html", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "summary": "Print the pg_checksums version and exit.", "signature": "-V --version", "source_url": "/docs/18/app-pgchecksums.html", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_checksums command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/18/app-pgchecksums.html", "description": "Show help about pg_checksums command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/18/postgresql-18-A4.pdf", "bytes": 15865106, "pages": 3154, "sha256": "19512c405da53f9f7fcf0abba359223aa65f021be025bf3411381918f92e3190", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/18/postgresql-18-US.pdf", "bytes": 15748059, "pages": 3328, "sha256": "facbe6c229e598b872d3d98bef53308f46e06746006fa4590de9a7de9dd46319", "built_at": "2026-09-26"}}, "tree": "18", "index": "index.html", "major": "18", "pages": 1148, "release": "18.6", "source_url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "svg_assets": 3, "source_mode": "en SGML built with pinned official archive", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8", "evidence_kind": "English manual and source declarations", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "/docs/18/app-pgchecksums.html", "file": "app-pgchecksums.html", "label": "18.6 English manual \u00b7 app-pgchecksums.html", "anchor": "", "sha256": "b16216257df55c09f6cc76f43a9c8ac811fda49b3a4490608f936681aa3cd4c2"}, {"url": "/docs/18/reference-server.html", "file": "reference-server.html", "label": "Server applications inventory", "anchor": "", "sha256": "e9f8bbcc8e3641fadd1d20991e8aad6b532155b786ba5a1b7b364ec4f1a5bef3"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "bedb5cc019cf0b63b7447217fd38288cc6393371e06f359b6085ef209c1844bd", "fragment_sha256": "335cf5baa6abd60267b7d7e36f247e760def9d836570dfd6759e86297dd4a693", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "26d765fdb2c2b617db49f88701585b8e0b3d9ea1fa817a690bcb7c7478d28a4f", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}, "facts_zh": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "18.6"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "sections": [], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "center_zh": {"title": "pg_checksums", "locale": "zh-Hans", "source": {"key": "pg-checksums", "locale": "zh-Hans", "version": "18", "text_hash": "f32430bc969bf99c7f631c62fd8f7863c3881ef8bef620676c150775831b5420", "collection": "tool", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}, "payload": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_checksums"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "18.6"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u670d\u52a1\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-identity", "manual": {"url": "/zh/docs/18/app-pgchecksums.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "app-pgchecksums.html", "extraction": "command-description-and-options", "source_hash": "bedb5cc019cf0b63b7447217fd38288cc6393371e06f359b6085ef209c1844bd", "fragment_sha256": "335cf5baa6abd60267b7d7e36f247e760def9d836570dfd6759e86297dd4a693", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "26d765fdb2c2b617db49f88701585b8e0b3d9ea1fa817a690bcb7c7478d28a4f", "runtime_rerun": false, "authored_translation": "source-derived-identity", "source_facts_revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}, "sections": [], "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div class=\"refsect1\"><h2>\u63cf\u8ff0</h2><p>\n<span class=\"application\">pg_checksums</span> \u7528\u4e8e\u5728 <span class=\"productname\">PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span class=\"application\">pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code class=\"filename\">pg_control</code>\u3002\n  </p></div><div class=\"refsect1\"><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div class=\"variablelist\"><dl class=\"variablelist\"><dt><span class=\"term\"><code class=\"option\">-D <em class=\"replaceable\"><code>directory</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--pgdata=<em class=\"replaceable\"><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-c</code><br/></span><span class=\"term\"><code class=\"option\">--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-d</code><br/></span><span class=\"term\"><code class=\"option\">--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-f <em class=\"replaceable\"><code>filenode</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--filenode=<em class=\"replaceable\"><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em class=\"replaceable\"><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-N</code><br/></span><span class=\"term\"><code class=\"option\">--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code class=\"command\">pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code class=\"literal\">--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">--sync-method=<em class=\"replaceable\"><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code class=\"literal\">fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code class=\"command\">pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code class=\"literal\">syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code class=\"literal\">syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a class=\"xref\" href=\"/zh/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code class=\"option\">--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-v</code><br/></span><span class=\"term\"><code class=\"option\">--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span class=\"application\">pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span class=\"application\">pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/18/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "version": "18", "link_map": {"/zh/docs/18/app-pgchecksums.html": "/docs/18/app-pgchecksums.html", "/zh/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD": "/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD"}, "body_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/18/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "48f7d61431c73f16508bee6a0232c08da207ca4fcd8334d34ca84afb6eede5f8", "content_hash": "f32430bc969bf99c7f631c62fd8f7863c3881ef8bef620676c150775831b5420", "source_database": "center", "source_revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}, "signature": "pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]", "tables_zh": [{"key": "options", "rows": [{"summary": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-D directory --pgdata= directory"}}, {"summary": "\u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-c --check"}}, {"summary": "\u7981\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-d --disable"}}, {"summary": "\u542f\u7528\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-e --enable"}}, {"summary": "\u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-f filenode --filenode= filenode"}}, {"summary": "\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-N --no-sync"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-P --progress"}}, {"summary": "\u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "--sync-method= method"}}, {"summary": "\u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-v --verbose"}}, {"summary": "\u6253\u5370 pg_checksums \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u5173\u4e8e pg_checksums \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgchecksums.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}, {"key": "environment", "rows": [{"name": "PGDATA", "description": "\u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\uff1b\u53ef\u4ee5\u7528 -D \u9009\u9879\u8986\u76d6\u3002"}, {"name": "PG_COLOR", "description": "\u6307\u5b9a\u8bca\u65ad\u6d88\u606f\u662f\u5426\u4f7f\u7528\u989c\u8272\u3002\u53ef\u9009\u503c\u4e3a always \u3001 auto \u548c never \u3002"}], "title": "\u73af\u5883\u53d8\u91cf", "columns": [{"key": "name", "label": "\u53d8\u91cf"}, {"key": "description", "label": "\u542b\u4e49"}]}], "description": ["\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}], "manual_html": "", "manual_path": "app-pgchecksums.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/app-pgchecksums.html", "method": "same-major semantic node", "sha256": "52fc2b5e6f0927d14e93093316ac2b48c1d0462af868c84be88447880d4084d8", "language": "zh", "matched_nodes": ["#APP-PGCHECKSUMS/div[2]/p[1]", "#APP-PGCHECKSUMS/div[3]/h2[0]", "#APP-PGCHECKSUMS/div[4]/p[1]", "#APP-PGCHECKSUMS/div[4]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[0]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[15]/p[2]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[19]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[21]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGCHECKSUMS/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGCHECKSUMS/div[5]/p[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[1]", "#APP-PGCHECKSUMS/div[6]/div[1]/dl[0]/dd[3]", "#APP-PGCHECKSUMS/div[6]/h2[0]", "#APP-PGCHECKSUMS/div[7]/h2[0]", "#APP-PGCHECKSUMS/div[7]/p[1]", "#APP-PGCHECKSUMS/div[7]/p[2]", "#APP-PGCHECKSUMS/div[7]/p[3]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "pg_checksums \u2014 enable, disable or check data checksums in a PostgreSQL database cluster", "/versions/18/facts/0/label": "Documented executable", "/versions/18/facts/1/label": "Executable version", "/versions/18/facts/2/label": "Reference inventory", "/versions/18/facts/2/value": "Server applications", "/versions/18/facts/3/label": "Option definition groups", "/versions/18/tables/0/title": "Documented options", "/versions/18/tables/1/title": "Environment variables", "/versions/18/tables/0/rows/0/summary": "Specifies the directory where the database cluster is stored.", "/versions/18/tables/0/rows/1/summary": "Checks checksums. This is the default mode if nothing else is specified.", "/versions/18/tables/0/rows/2/summary": "Disables checksums.", "/versions/18/tables/0/rows/3/summary": "Enables checksums.", "/versions/18/tables/0/rows/4/summary": "Only validate checksums in the relation with filenode filenode .", "/versions/18/tables/0/rows/5/summary": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check .", "/versions/18/tables/0/rows/6/summary": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums.", "/versions/18/tables/0/rows/7/summary": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace.", "/versions/18/tables/0/rows/8/summary": "Enable verbose output. Lists all checked files.", "/versions/18/tables/0/rows/9/summary": "Print the pg_checksums version and exit.", "/versions/18/tables/0/columns/0/label": "Option and arguments", "/versions/18/tables/0/columns/1/label": "Description", "/versions/18/tables/0/rows/10/summary": "Show help about pg_checksums command line arguments, and exit.", "/versions/18/tables/1/columns/0/label": "Variable", "/versions/18/tables/1/columns/1/label": "Meaning", "/versions/18/tables/1/rows/0/description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option.", "/versions/18/tables/1/rows/1/description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1570dedca3f150c2d02227d960e298ed7c57e2f1c4e831380a65315aa1f00fb8", "canonical_center_text_hash": "f32430bc969bf99c7f631c62fd8f7863c3881ef8bef620676c150775831b5420"}, "description_zh": "\u63cf\u8ff0 pg_checksums \u7528\u4e8e\u5728 PostgreSQL \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c pg_checksums \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002 \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 pg_control \u3002 \u9009\u9879 \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a -D directory --pgdata= directory \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002 -c --check \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002 -d --disable \u7981\u7528\u6821\u9a8c\u548c\u3002 -e --enable \u542f\u7528\u6821\u9a8c\u548c\u3002 -f filenode --filenode= filenode \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a filenode \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002 -N --no-sync \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c pg_checksums \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f pg_checksums \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 --check \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -P --progress \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002 --sync-method= method \u8bbe\u4e3a fsync \uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c pg_checksums \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002 \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 syncfs \uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 syncfs \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 recovery_init_sync_method \u3002 \u4f7f\u7528 --no-sync \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002 -v --verbose \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6", "comparison_data": {"options": [{"names": ["-D directory", "--pgdata= directory"], "signature": "-D directory --pgdata= directory", "description": "Specifies the directory where the database cluster is stored."}, {"names": ["-c", "--check"], "signature": "-c --check", "description": "Checks checksums. This is the default mode if nothing else is specified."}, {"names": ["-d", "--disable"], "signature": "-d --disable", "description": "Disables checksums."}, {"names": ["-e", "--enable"], "signature": "-e --enable", "description": "Enables checksums."}, {"names": ["-f filenode", "--filenode= filenode"], "signature": "-f filenode --filenode= filenode", "description": "Only validate checksums in the relation with filenode filenode ."}, {"names": ["-N", "--no-sync"], "signature": "-N --no-sync", "description": "By default, pg_checksums will wait for all files to be written safely to disk. This option causes pg_checksums to return without waiting, which is faster, but means that a subsequent operating system crash can leave the updated data directory corrupt. Generally, this option is useful for testing but should not be used on a production installation. This option has no effect when using --check ."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while checking or enabling checksums."}, {"names": ["--sync-method= method"], "signature": "--sync-method= method", "description": "When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used."}, {"names": ["-v", "--verbose"], "signature": "-v --verbose", "description": "Enable verbose output. Lists all checked files."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_checksums version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_checksums command line arguments, and exit."}], "synopsis": ["pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]"], "environment": [{"name": "PGDATA", "description": "Specifies the directory where the database cluster is stored; can be overridden using the -D option."}, {"name": "PG_COLOR", "description": "Specifies whether to use color in diagnostic messages. Possible values are always , auto and never ."}]}, "comparison_hash": "9df98d0a65050d461414d0c4fc42b1f97bbb808ec68690d4aad884d9b571bb05", "manual_language": "zh", "description_zh_html": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/zh/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\" rel=\"nofollow\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/zh/docs/18/app-pgchecksums.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u547d\u4ee4\u884c\u5de5\u5177 pg_checksums [ option ...] [[ -D | --pgdata ] datadir ]\u3002</p><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><div><h2>\u63cf\u8ff0</h2><p>\n<span>pg_checksums</span> \u7528\u4e8e\u5728 <span>PostgreSQL</span> \u6570\u636e\u5e93\u96c6\u7c07\u4e2d\u68c0\u67e5\u3001\u542f\u7528\u6216\u7981\u7528\u6570\u636e\u6821\u9a8c\u548c\u3002\u8fd0\u884c <span>pg_checksums</span> \u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u5c06\u670d\u52a1\u5668\u5e72\u51c0\u5173\u95ed\u3002\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u6821\u9a8c\u548c\u9519\u8bef\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u96f6\uff1b\u5982\u679c\u68c0\u6d4b\u5230\u81f3\u5c11\u4e00\u4e2a\u6821\u9a8c\u548c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\u542f\u7528\u6216\u7981\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u5982\u679c\u64cd\u4f5c\u5931\u8d25\uff0c\u5219\u9000\u51fa\u72b6\u6001\u4e3a\u975e\u96f6\u3002\n  </p><p>\n   \u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\uff0c\u96c6\u7c07\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u88ab\u626b\u63cf\u3002\u542f\u7528\u6821\u9a8c\u548c\u65f6\uff0c\u6821\u9a8c\u548c\u53d1\u751f\u53d8\u5316\u7684\u6bcf\u4e2a\u5173\u7cfb\u6587\u4ef6\u5757\u90fd\u4f1a\u88ab\u539f\u5730\u91cd\u5199\u3002\u7981\u7528\u6821\u9a8c\u548c\u53ea\u4f1a\u66f4\u65b0\u6587\u4ef6 <code>pg_control</code>\u3002\n  </p></div><div><h2>\u9009\u9879</h2><p>\n    \u63d0\u4f9b\u4ee5\u4e0b\u547d\u4ee4\u884c\u9009\u9879\uff1a\n\n    </p><div><dl><dt><span><code>-D <em><code>directory</code></em></code><br/></span><span><code>--pgdata=<em><code>directory</code></em></code></span> </dt><dd><p>\n        \u6307\u5b9a\u5b58\u50a8\u6570\u636e\u5e93\u96c6\u7c07\u7684\u76ee\u5f55\u3002\n       </p></dd><dt><span><code>-c</code><br/></span><span><code>--check</code></span> </dt><dd><p>\n        \u68c0\u67e5\u6821\u9a8c\u548c\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5176\u4ed6\u6a21\u5f0f\uff0c\u8fd9\u662f\u9ed8\u8ba4\u6a21\u5f0f\u3002\n       </p></dd><dt><span><code>-d</code><br/></span><span><code>--disable</code></span> </dt><dd><p>\n        \u7981\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-e</code><br/></span><span><code>--enable</code></span> </dt><dd><p>\n        \u542f\u7528\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-f <em><code>filenode</code></em></code><br/></span><span><code>--filenode=<em><code>filenode</code></em></code></span> </dt><dd><p>\n        \u4ec5\u9a8c\u8bc1\u6587\u4ef6\u8282\u70b9\u4e3a <em><code>filenode</code></em> \u7684\u5173\u7cfb\u4e2d\u7684\u6821\u9a8c\u548c\u3002\n       </p></dd><dt><span><code>-N</code><br/></span><span><code>--no-sync</code></span> </dt><dd><p>\n        \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>pg_checksums</code> \u4f1a\u7b49\u5f85\u6240\u6709\u6587\u4ef6\u88ab\u5b89\u5168\u5199\u5165\u78c1\u76d8\u3002\u8be5\u9009\u9879\u4f1a\u4f7f <code>pg_checksums</code> \u76f4\u63a5\u8fd4\u56de\u800c\u4e0d\u7b49\u5f85\uff0c\u8fd9\u6837\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u4e5f\u610f\u5473\u7740\u5982\u679c\u968f\u540e\u64cd\u4f5c\u7cfb\u7edf\u5d29\u6e83\uff0c\u66f4\u65b0\u540e\u7684\u6570\u636e\u76ee\u5f55\u53ef\u80fd\u4f1a\u635f\u574f\u3002\u901a\u5e38\uff0c\u6b64\u9009\u9879\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u4e0d\u5e94\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u3002\u4f7f\u7528 <code>--check</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-P</code><br/></span><span><code>--progress</code></span> </dt><dd><p>\n        \u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u68c0\u67e5\u6216\u542f\u7528\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002\n       </p></dd><dt><span><code>--sync-method=<em><code>method</code></em></code></span> </dt><dd><p>\n        \u8bbe\u4e3a <code>fsync</code>\uff08\u9ed8\u8ba4\u503c\uff09\u65f6\uff0c<code>pg_checksums</code> \u4f1a\u9012\u5f52\u6253\u5f00\u5e76\u540c\u6b65\u6570\u636e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u67e5\u627e\u6587\u4ef6\u65f6\u4f1a\u8ddf\u968f WAL \u76ee\u5f55\u548c\u6bcf\u4e2a\u5df2\u914d\u7f6e\u8868\u7a7a\u95f4\u7684\u7b26\u53f7\u94fe\u63a5\u3002\n       </p><p>\n        \u5728 Linux \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u6539\u7528 <code>syncfs</code>\uff0c\u8bf7\u6c42\u64cd\u4f5c\u7cfb\u7edf\u540c\u6b65\u5305\u542b\u6570\u636e\u76ee\u5f55\u3001WAL \u6587\u4ef6\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u7684\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528 <code>syncfs</code> \u65f6\u9700\u6ce8\u610f\u7684\u4e8b\u9879\u89c1 <a href=\"/docs/18/runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD\">recovery_init_sync_method</a>\u3002\n       </p><p>\n        \u4f7f\u7528 <code>--no-sync</code> \u65f6\uff0c\u6b64\u9009\u9879\u4e0d\u8d77\u4f5c\u7528\u3002\n       </p></dd><dt><span><code>-v</code><br/></span><span><code>--verbose</code></span> </dt><dd><p>\n        \u542f\u7528\u8be6\u7ec6\u8f93\u51fa\uff0c\u5217\u51fa\u6240\u6709\u88ab\u68c0\u67e5\u7684\u6587\u4ef6\u3002\n       </p></dd><dt><span><code>-V</code><br/></span><span><code>--version</code></span> </dt><dd><p>\n        \u6253\u5370 <span>pg_checksums</span> \u7248\u672c\u5e76\u9000\u51fa\u3002\n       </p></dd><dt><span><code>-?</code><br/></span><span><code>--help</code></span> </dt><dd><p>\n         \u663e\u793a\u5173\u4e8e <span>pg_checksums</span> \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002\n        </p></dd></dl></div><p>\n</p></div><p><a href=\"/docs/18/app-pgchecksums.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "16", "right": "17", "status": "changed", "diff": "--- PostgreSQL 16\n+++ PostgreSQL 17\n@@ -67,6 +67,13 @@\n       \"signature\": \"-P --progress\"\n     },\n     {\n+      \"description\": \"When set to fsync , which is the default, pg_checksums will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links for the WAL directory and each configured tablespace. On Linux, syncfs may be used instead to ask the operating system to synchronize the whole file systems that contain the data directory, the WAL files, and each tablespace. See recovery_init_sync_method for information about the caveats to be aware of when using syncfs . This option has no effect when --no-sync is used.\",\n+      \"names\": [\n+        \"--sync-method= method\"\n+      ],\n+      \"signature\": \"--sync-method= method\"\n+    },\n+    {\n       \"description\": \"Enable verbose output. Lists all checked files.\",\n       \"names\": [\n         \"-v\","}}