{"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","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"],"signature":"pg_restore_relation_stats ( VARIADIC kwargs \"any\" ) → boolean","signature_count":1,"slug":"pg-restore-relation-stats","source_rev":"b7bd9cda","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":"b7bd9cda","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":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-ADMIN-STATSMOD","file":"functions-admin.html","slug":"18"},"group":"admin","group_label":"System Administration Functions","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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-STATSMOD","file":"functions-admin.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-restore-relation-stats","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_restore_relation_stats","Summary":"更新表级统计信息。通常这些统计信息会自动收集或作为VACUUM或ANALYZE的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行ANALYZE时帮助优化器选择更好的计划。","BodyHTML":"更新表级统计信息。通常这些统计信息会自动收集或作为\u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\" rel=\"nofollow\"\u003e\u003cspan\u003eVACUUM\u003c/span\u003e\u003c/a\u003e或\u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\" rel=\"nofollow\"\u003e\u003cspan\u003eANALYZE\u003c/span\u003e\u003c/a\u003e的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行\u003ccode\u003eANALYZE\u003c/code\u003e时帮助优化器选择更好的计划。\u003cpre\u003epg_restore_relation_stats ( VARIADIC kwargs \u0026#34;any\u0026#34; ) → boolean\u003c/pre\u003e更新表级统计信息。通常这些统计信息会自动收集或作为\u003ca href=\"/docs/18/sql-vacuum.html\" title=\"VACUUM\" rel=\"nofollow\"\u003e\u003cspan\u003eVACUUM\u003c/span\u003e\u003c/a\u003e或\u003ca href=\"/docs/18/sql-analyze.html\" title=\"ANALYZE\" rel=\"nofollow\"\u003e\u003cspan\u003eANALYZE\u003c/span\u003e\u003c/a\u003e的一部分更新，因此不必调用此函数。但它在恢复后很有用，可以在尚未运行\u003ccode\u003eANALYZE\u003c/code\u003e时帮助优化器选择更好的计划。","SourceRevision":"ca936764","ContentHash":"23e6f4994fb5ac76f3435ab26660d8f43cad2ba5edc9f0759d8062b78717ad8e","Payload":{"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时帮助优化器选择更好的计划。","signatures":[{"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时帮助优化器选择更好的计划。","returns":"boolean","text":"pg_restore_relation_stats ( VARIADIC kwargs \"any\" ) → boolean","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
