{"Entry":{"collection":"func","key":"pg-table-size","name":"pg_table_size","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","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":"9750afff57103e13d491618f56d30c1aebd5bc80c57a8f4bdd2ba658b52f9ef7","derived_content_hash":"762e3db818cdb3e1b6e903ae3c42e15a3e3eec0e9a6d3ba5519c380293707443","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:16b410971756157dbc47c0328e6cc975727c11205059effe05c7181df58efcaa","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.0","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.682283+08:00","last_version":"20","name":"pg_table_size","name_key":"pg_table_size","position":29105,"present_in":["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:45934c95d24c4c1995e736e69765e563de15e94737a3c94acd35cc8e00d3b82a","receipt_sha256":"8bad577ab98c619c8c966c8143cb18f7eeb7c1d6c31ec22ce656d52b13afc88a","repair":"wiki-repair-20261023"},"signature":"pg_table_size ( regclass ) → bigint","signature_count":1,"slug":"pg-table-size","source_rev":"wiki-repair-20261023:16b410971756157dbc47c0328e6cc975727c11205059effe05c7181df58efcaa","summary":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-table-size","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-table-size","SourceRevision":"wiki-repair-20261023:16b410971756157dbc47c0328e6cc975727c11205059effe05c7181df58efcaa","Facts":{"description":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_html":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_zh":"计算指定表所使用的磁盘空间，不包括索引（但包括其 TOAST 表（如有）、空闲空间映射和可见性映射）。","description_zh_html":"计算指定表所使用的磁盘空间，不包括索引（但包括其 TOAST 表（如有）、空闲空间映射和可见性映射）。","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 disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_html":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_zh":"计算指定表所使用的磁盘空间，不包括索引（但包括其 TOAST 表（如有）、空闲空间映射和可见性映射）。","description_zh_html":"计算指定表所使用的磁盘空间，不包括索引（但包括其 TOAST 表（如有）、空闲空间映射和可见性映射）。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregclass\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"pg_table_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-table-size","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_table_size","Summary":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","BodyHTML":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","SourceRevision":"wiki-repair-20261023:16b410971756157dbc47c0328e6cc975727c11205059effe05c7181df58efcaa","ContentHash":"cc673dbd620c3df604c22723f8a13a5e81f2a2177d4659df6a61d54e6c2ece79","Payload":{"description":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_html":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","signatures":[{"description":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_html":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_zh":"计算指定表所使用的磁盘空间，不包括索引（但包括其 TOAST 表（如有）、空闲空间映射和可见性映射）。","description_zh_html":"计算指定表所使用的磁盘空间，不包括索引（但包括其 TOAST 表（如有）、空闲空间映射和可见性映射）。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregclass\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"pg_table_size ( regclass ) → bigint","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"0478af1552adb73c5f8be136f21c316fbe3c539a71e22779a9b42dcd89ac7758","Text":"pg_table_size ( regclass ) → bigint","Returns":"bigint","Payload":{"description":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_html":"Computes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).","description_zh":"计算指定表所使用的磁盘空间，不包括索引（但包括其 TOAST 表（如有）、空闲空间映射和可见性映射）。","description_zh_html":"计算指定表所使用的磁盘空间，不包括索引（但包括其 TOAST 表（如有）、空闲空间映射和可见性映射）。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_table_size\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregclass\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"pg_table_size ( regclass ) → bigint","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
