{"Entry":{"collection":"func","key":"pg-restore-relation-stats","name":"pg_restore_relation_stats","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"17","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"18"}],"content_hash":"fc927dd0605a22eaaa47fe2fcf95e716357847cc52bd473944db2e758c54105d","derived_content_hash":"61260a3c8878671c36f398f0b4905a8038a406f00aba4661b1d8ea31ea304ebd","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:570298746edf36a3788b2779f2b41f6a45c840cf725629e69d75c06370af449d","versions":{"18":"18.7","19":"19rc2"}},"first_version":"18","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.654221+08:00","last_version":"20","name":"pg_restore_relation_stats","name_key":"pg_restore_relation_stats","position":29094,"present_in":["18","19","20"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"fe0f166fa897dc42d67c466bf253fe1bcef9faf7610fff77b49eb786edeed679","repair":"wiki-repair-20261023"},"signature":"pg_restore_relation_stats ( VARIADIC kwargs \"any\" ) → boolean","signature_count":1,"slug":"pg-restore-relation-stats","source_rev":"wiki-repair-20261023:570298746edf36a3788b2779f2b41f6a45c840cf725629e69d75c06370af449d","summary":"Updates table-level statistics.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-restore-relation-stats","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-restore-relation-stats","SourceRevision":"wiki-repair-20261023:570298746edf36a3788b2779f2b41f6a45c840cf725629e69d75c06370af449d","Facts":{"description":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of VACUUM or ANALYZE, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if ANALYZE has not been run yet.","description_html":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e or \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e has not been run yet.","description_zh":"更新表级统计信息。通常这些统计信息会自动收集或作为 VACUUM 或 ANALYZE 的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行 ANALYZE 时帮助优化器选择更好的计划。","description_zh_html":"更新表级统计信息。通常这些统计信息会自动收集或作为 \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e 或 \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e 的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行 \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e 时帮助优化器选择更好的计划。","doc":{"anchor":"FUNCTIONS-ADMIN-STATSMOD","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","version":"18.7"},{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"830e894d29fec30b7c350c915fcaed4a63b24d57f2c96150bf25fa07fb43849c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"admin","group_label":"系统管理函数","lang":"en","layout":"table-new","pages":["functions-admin.html"],"prose_only":false,"signatures":[{"description":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of VACUUM or ANALYZE, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if ANALYZE has not been run yet.","description_html":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e or \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e has not been run yet.","description_zh":"更新表级统计信息。通常这些统计信息会自动收集或作为 VACUUM 或 ANALYZE 的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行 ANALYZE 时帮助优化器选择更好的计划。","description_zh_html":"更新表级统计信息。通常这些统计信息会自动收集或作为 \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e 或 \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e 的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行 \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e 时帮助优化器选择更好的计划。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_restore_relation_stats\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003cem class=\"parameter\"\u003e\u003ccode\u003ekwargs\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_restore_relation_stats ( VARIADIC kwargs \"any\" ) → boolean","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-admin.html","sha256":"b4fab9daceb7883fd75b32b6eb5398f2bbbfbbed5c83d1b2bf99cc8d842cdaf7"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-STATSMOD","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-restore-relation-stats","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_restore_relation_stats","Summary":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of VACUUM or ANALYZE, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if ANALYZE has not been run yet.","BodyHTML":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\" rel=\"nofollow\"\u003e\u003cspan\u003eVACUUM\u003c/span\u003e\u003c/a\u003e or \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\" rel=\"nofollow\"\u003e\u003cspan\u003eANALYZE\u003c/span\u003e\u003c/a\u003e, so it\u0026#39;s not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if \u003ccode\u003eANALYZE\u003c/code\u003e has not been run yet.","SourceRevision":"wiki-repair-20261023:570298746edf36a3788b2779f2b41f6a45c840cf725629e69d75c06370af449d","ContentHash":"2c5c9ba1897551972fd150799636266a4ccc200466bb5cb23b0e691547a79c9b","Payload":{"description":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of VACUUM or ANALYZE, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if ANALYZE has not been run yet.","description_html":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e or \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e has not been run yet.","signatures":[{"description":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of VACUUM or ANALYZE, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if ANALYZE has not been run yet.","description_html":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e or \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e has not been run yet.","description_zh":"更新表级统计信息。通常这些统计信息会自动收集或作为 VACUUM 或 ANALYZE 的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行 ANALYZE 时帮助优化器选择更好的计划。","description_zh_html":"更新表级统计信息。通常这些统计信息会自动收集或作为 \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e 或 \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e 的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行 \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e 时帮助优化器选择更好的计划。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_restore_relation_stats\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003cem class=\"parameter\"\u003e\u003ccode\u003ekwargs\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_restore_relation_stats ( VARIADIC kwargs \"any\" ) → boolean","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"6779c724f1e495246c536121121795e8f3808a06cc91b1543bf5c4a878c483e9","Text":"pg_restore_relation_stats ( VARIADIC kwargs \"any\" ) → boolean","Returns":"boolean","Payload":{"description":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of VACUUM or ANALYZE, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if ANALYZE has not been run yet.","description_html":"Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e or \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e has not been run yet.","description_zh":"更新表级统计信息。通常这些统计信息会自动收集或作为 VACUUM 或 ANALYZE 的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行 ANALYZE 时帮助优化器选择更好的计划。","description_zh_html":"更新表级统计信息。通常这些统计信息会自动收集或作为 \u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\"\u003e\u003cspan class=\"refentrytitle\"\u003eVACUUM\u003c/span\u003e\u003c/a\u003e 或 \u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\"\u003e\u003cspan class=\"refentrytitle\"\u003eANALYZE\u003c/span\u003e\u003c/a\u003e 的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行 \u003ccode class=\"command\"\u003eANALYZE\u003c/code\u003e 时帮助优化器选择更好的计划。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_restore_relation_stats\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003cem class=\"parameter\"\u003e\u003ccode\u003ekwargs\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_restore_relation_stats ( VARIADIC kwargs \"any\" ) → boolean","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
