hi i'm trying to find the size of all blobs. I always used this
SELECT sum(pg_column_size(pg_largeobject)) lob_size FROM pg_largeobject
but while my database is growing ~40GB this takes several hours and loads the cpu too much.
is there any more efficent way?
pg_table_size('pg_largeobject')good enough?pg_table_sizeincludes the padding between rows, the dead rows, row headers... that's the real size on disk.