2022-01-12から1日間の記事一覧
MySQLでいうshow table statusのようなことがしたいときがよくあるのでメモ。 select c.relname, c.reltuples from pg_class c inner join pg_tables t on c.relname = t.tablename where t.schemaname = 'public' order by c.relname; 追加で t.tablename l…
MySQLでいうshow table statusのようなことがしたいときがよくあるのでメモ。 select c.relname, c.reltuples from pg_class c inner join pg_tables t on c.relname = t.tablename where t.schemaname = 'public' order by c.relname; 追加で t.tablename l…