SELECT SUM(pg_column_size(table_name.*))/COUNT(*) FROM tablename;
SELECT SUM(pg_column_size(table_name.column_name))/COUNT(*) FROM tablename;
где tablename — имя таблицы, column_name — имя колонки
SELECT SUM(pg_column_size(table_name.*))/COUNT(*) FROM tablename;
SELECT SUM(pg_column_size(table_name.column_name))/COUNT(*) FROM tablename;
где tablename — имя таблицы, column_name — имя колонки
Be First to Comment