Shows the size of every postgres database column:
CREATE FUNCTION tc_column_size(table_name text, column_name text)
RETURNS BIGINT AS
$$
declare response BIGINT;
BEGIN
EXECUTE 'select sum(pg_column_size(t."' || column_name || '")) from "' || table_name || '" t ' into response;
return response;