{"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","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"],"signature":"pg_total_relation_size ( regclass ) → bigint","signature_count":1,"slug":"pg-total-relation-size","source_rev":"b7bd9cda","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":"b7bd9cda","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":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-ADMIN-DBSIZE","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":"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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-DBSIZE","file":"functions-admin.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-total-relation-size","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_total_relation_size","Summary":"计算指定表所使用的总磁盘空间，包括所有索引和TOAST数据。结果等价于pg_table_size + pg_indexes_size。","BodyHTML":"计算指定表所使用的总磁盘空间，包括所有索引和TOAST数据。结果等价于\u003ccode\u003epg_table_size\u003c/code\u003e \u003ccode\u003e+\u003c/code\u003e \u003ccode\u003epg_indexes_size\u003c/code\u003e。\u003cpre\u003epg_total_relation_size ( regclass ) → bigint\u003c/pre\u003e计算指定表所使用的总磁盘空间，包括所有索引和TOAST数据。结果等价于\u003ccode\u003epg_table_size\u003c/code\u003e \u003ccode\u003e+\u003c/code\u003e \u003ccode\u003epg_indexes_size\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"7f01bd6bed2d346f769b1088693e27f893a0b507dfe375d9f80b85b95f83071a","Payload":{"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。","signatures":[{"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。","returns":"bigint","text":"pg_total_relation_size ( regclass ) → bigint","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
