{"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","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"],"signature":"pg_size_pretty ( bigint ) → text","signature_count":2,"slug":"pg-size-pretty","source_rev":"b7bd9cda","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":"b7bd9cda","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":"","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":"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":"","description_zh_html":"","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":""},{"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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-DBSIZE","file":"functions-admin.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-size-pretty","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_size_pretty","Summary":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB或PB）。请注意，单位是2的幂，而不是10的幂，因此1kB是1024字节，1MB是10242 = 1048576字节，依此类推。","BodyHTML":"将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB或PB）。请注意，单位是2的幂，而不是10的幂，因此1kB是1024字节，1MB是1024\u003csup\u003e2\u003c/sup\u003e = 1048576字节，依此类推。\u003cpre\u003epg_size_pretty ( bigint ) → text\u003c/pre\u003e将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB或PB）。请注意，单位是2的幂，而不是10的幂，因此1kB是1024字节，1MB是1024\u003csup\u003e2\u003c/sup\u003e = 1048576字节，依此类推。\u003cpre\u003epg_size_pretty ( numeric ) → text\u003c/pre\u003e将字节大小转换为更易于人类阅读的格式，带有大小单位（字节，kB，MB，GB，TB或PB）。请注意，单位是2的幂，而不是10的幂，因此1kB是1024字节，1MB是1024\u003csup\u003e2\u003c/sup\u003e = 1048576字节，依此类推。","SourceRevision":"ca936764","ContentHash":"34dc149c1b7b2e3bc599225b7367cd729f0d560283a01d9cdfff692a71aae89b","Payload":{"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字节，依此类推。","signatures":[{"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字节，依此类推。","returns":"text","text":"pg_size_pretty ( bigint ) → text","zh_from":"doc"},{"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字节，依此类推。","returns":"text","text":"pg_size_pretty ( numeric ) → text","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":"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":"","description_zh_html":"","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":""}},{"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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
