I have a table with large amounts of BLOB data in a column. I am writing a utility to dump the data to file system. But before dumping, I need to check if necessary space is
select sum(length(blob_column_name)) from desired_tablename;