{"Entry":{"collection":"func","key":"pg-total-relation-size","name":"pg_total_relation_size","aliases":[],"metadata":{"changed_in":["8.4"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.1"},{"descriptions_changed":true,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":["pg_total_relation_size ( regclass ) → bigint"],"removed":["pg_total_relation_size ( oid ) → bigint","pg_total_relation_size ( text ) → bigint"]},"status":"changed","to":"8.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"8.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.0"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"26aedd3b1ebf0f8cd22a592f67916c6bb539921ea0ad7852e0749c094c742fa5","derived_content_hash":"3116c872a54311a290886247a96dcd7d6a855ac174f8578b8884801d2ba83c57","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:71143489d386a070f1dd1d956e6f37ff452fab8b3cbf9c6cde71d8492026e482","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"8.1","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.690431+08:00","last_version":"20","name":"pg_total_relation_size","name_key":"pg_total_relation_size","position":29108,"present_in":["8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:99b0eaf64c4c7e8125d70295ca4bc4486c82cefb3abfb7a0663d04eeccbae049","receipt_sha256":"37ea3f0c071020d2ed33421d013975bf3afbdc30242caea03db48be0216d736b","repair":"wiki-repair-20261023"},"signature":"pg_total_relation_size ( regclass ) → bigint","signature_count":1,"slug":"pg-total-relation-size","source_rev":"wiki-repair-20261023:71143489d386a070f1dd1d956e6f37ff452fab8b3cbf9c6cde71d8492026e482","summary":"Computes the total disk space used by the specified table, including all indexes and TOAST data.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-total-relation-size","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-total-relation-size","SourceRevision":"wiki-repair-20261023:71143489d386a070f1dd1d956e6f37ff452fab8b3cbf9c6cde71d8492026e482","Facts":{"description":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to pg_table_size + pg_indexes_size.","description_html":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e.","description_zh":"计算指定表所使用的总磁盘空间，包括所有索引和 TOAST 数据。结果等价于 pg_table_size + pg_indexes_size。","description_zh_html":"计算指定表所使用的总磁盘空间，包括所有索引和 TOAST 数据。结果等价于 \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e。","doc":{"anchor":"FUNCTIONS-ADMIN-DBSIZE","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":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to pg_table_size + pg_indexes_size.","description_html":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e.","description_zh":"计算指定表所使用的总磁盘空间，包括所有索引和 TOAST 数据。结果等价于 pg_table_size + pg_indexes_size。","description_zh_html":"计算指定表所使用的总磁盘空间，包括所有索引和 TOAST 数据。结果等价于 \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_total_relation_size\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregclass\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"pg_total_relation_size ( regclass ) → bigint","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-DBSIZE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-total-relation-size","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_total_relation_size","Summary":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to pg_table_size + pg_indexes_size.","BodyHTML":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to \u003ccode\u003epg_table_size\u003c/code\u003e \u003ccode\u003e+\u003c/code\u003e \u003ccode\u003epg_indexes_size\u003c/code\u003e.","SourceRevision":"wiki-repair-20261023:71143489d386a070f1dd1d956e6f37ff452fab8b3cbf9c6cde71d8492026e482","ContentHash":"6f2fdd9cd3ca1912a5bd2eeb003f251a8f5cc6d6ef98d5cc08ae176b80e1466f","Payload":{"description":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to pg_table_size + pg_indexes_size.","description_html":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e.","signatures":[{"description":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to pg_table_size + pg_indexes_size.","description_html":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e.","description_zh":"计算指定表所使用的总磁盘空间，包括所有索引和 TOAST 数据。结果等价于 pg_table_size + pg_indexes_size。","description_zh_html":"计算指定表所使用的总磁盘空间，包括所有索引和 TOAST 数据。结果等价于 \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_total_relation_size\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregclass\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"pg_total_relation_size ( regclass ) → bigint","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"56672fc4c00856a21aa5ea338c174f677f62ff6e70051e28ff395b1a12fa3bb8","Text":"pg_total_relation_size ( regclass ) → bigint","Returns":"bigint","Payload":{"description":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to pg_table_size + pg_indexes_size.","description_html":"Computes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e.","description_zh":"计算指定表所使用的总磁盘空间，包括所有索引和 TOAST 数据。结果等价于 pg_table_size + pg_indexes_size。","description_zh_html":"计算指定表所使用的总磁盘空间，包括所有索引和 TOAST 数据。结果等价于 \u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e \u003ccode class=\"literal\"\u003e+\u003c/code\u003e \u003ccode class=\"function\"\u003epg_indexes_size\u003c/code\u003e。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_total_relation_size\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregclass\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"pg_total_relation_size ( regclass ) → bigint","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
