pg_column_size returns the number of bytes with no formatting at all. Do something like select pg_size_pretty(pg_column_size(my_column) / 1024) would give you the value in Kbytes, further calculation in the same manner could convert this into Mbytes, Gbytes, or whatever you need. — Jay Sent from my iPad On Feb 19, 2021, at 7:28 AM, dbatoCloud Solution <dbatocloud17@xxxxxxxxx> wrote:
|