51CTO博客已为您找到关于pg_size_pretty的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及pg_size_pretty问答内容。更多pg_size_pretty相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
pg_size_pretty will give you Kb or MB or GB ,etc according to the internal code ,and you wont operate or sum this result ... better use : pg_relation_size : returns the on-disk size in bytes ,so you can convert it to the format (kb,mb,gb) that you want. Share Follow...
CREATE FUNCTION pretty_size( size DOUBLE ) RETURNS VARCHAR(255) DETERMINISTIC BEGIN DECLARE...