create or replace function count_rows_of_table(table_schema text, table_name text) returns numeric language plpgsql as $$ declare count numeric; begin execute format('select count(*) from %s.%s', table_schema, table_name) into count; return count; end; $$; SELECT n.nspname as "Schema", c.relname as "Name", pg_catalog.pg_get_userbyid(c.relowner) as "Owner", TO_CHAR( pg_catalog.pg_table_size(c.oid..