{"Entry":{"collection":"func","key":"pg-size-pretty","name":"pg_size_pretty","aliases":[],"metadata":{"changed_in":["9.2"],"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":"9.1","group_changed":null,"signatures":{"added":["pg_size_pretty ( numeric ) → text"],"removed":[]},"status":"changed","to":"9.2"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"14","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"15"}],"content_hash":"eff8ecdeea0270e3f8edcf08a291b35c49d62359b8f79a34f33c34c3ea3ad038","derived_content_hash":"532665759774ae5f2442ca4766e80ce85cd5121a153be53ab8292e7de36618ea","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:198b89d889dce41ed9a62270d34787e38238f87925e29148a68be6a182972674","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.660981+08:00","last_version":"20","name":"pg_size_pretty","name_key":"pg_size_pretty","position":29097,"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:2352cb4529126507552b9e2ad83e611940d4eee4f54f64d9fe042c66678cc188","receipt_sha256":"7f1d482ba9c417fa89b8bb576b33ce73a230cac80e57287e42c44c3ae1e98cb5","repair":"wiki-repair-20261023"},"signature":"pg_size_pretty ( bigint ) → text","signature_count":2,"slug":"pg-size-pretty","source_rev":"wiki-repair-20261023:198b89d889dce41ed9a62270d34787e38238f87925e29148a68be6a182972674","summary":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate).","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-size-pretty","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-size-pretty","SourceRevision":"wiki-repair-20261023:198b89d889dce41ed9a62270d34787e38238f87925e29148a68be6a182972674","Facts":{"description":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","description_html":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","description_zh":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 10242 = 1048576 字节，依此类推。","description_zh_html":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 字节，依此类推。","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":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","description_html":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","description_zh":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 10242 = 1048576 字节，依此类推。","description_zh_html":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 字节，依此类推。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_size_pretty\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"pg_size_pretty ( bigint ) → text","zh_from":"same-version-manual"},{"description":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","description_html":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","description_zh":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 10242 = 1048576 字节，依此类推。","description_zh_html":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 字节，依此类推。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_size_pretty\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"pg_size_pretty ( numeric ) → text","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-size-pretty","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_size_pretty","Summary":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","BodyHTML":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","SourceRevision":"wiki-repair-20261023:198b89d889dce41ed9a62270d34787e38238f87925e29148a68be6a182972674","ContentHash":"0aae5e4abb4a20c8c10d18c500d0324dec0445ae901d0b7aca17ffa0a84607ad","Payload":{"description":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","description_html":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","signatures":[{"description":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","description_html":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","description_zh":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 10242 = 1048576 字节，依此类推。","description_zh_html":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 字节，依此类推。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_size_pretty\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"pg_size_pretty ( bigint ) → text","zh_from":"same-version-manual"},{"description":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","description_html":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","description_zh":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 10242 = 1048576 字节，依此类推。","description_zh_html":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 字节，依此类推。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_size_pretty\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"pg_size_pretty ( numeric ) → text","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":"d18701489f69e4359981b9033e98e8ae1e9f2ab9a3a8d0fd1b8e7cdf700c7d07","Text":"pg_size_pretty ( bigint ) → text","Returns":"text","Payload":{"description":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","description_html":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","description_zh":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 10242 = 1048576 字节，依此类推。","description_zh_html":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 字节，依此类推。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_size_pretty\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"pg_size_pretty ( bigint ) → text","zh_from":"same-version-manual"}},{"Version":"18","Ordinal":1,"Hash":"eec59201f03610938bc6aff4acfd1f96534d86b86eab32b94d0efada692a63b4","Text":"pg_size_pretty ( numeric ) → text","Returns":"text","Payload":{"description":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 10242 = 1048576 bytes, and so on.","description_html":"Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes, 1MB is 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 bytes, and so on.","description_zh":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 10242 = 1048576 字节，依此类推。","description_zh_html":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB 或 PB）。请注意，单位是 2 的幂，而不是 10 的幂，因此 1kB 是 1024 字节，1MB 是 1024\u003csup\u003e2\u003c/sup\u003e = 1048576 字节，依此类推。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_size_pretty\u003c/code\u003e ( \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"pg_size_pretty ( numeric ) → text","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
