最近のコメント

    PostgreSQLで全テーブルのレコード数を一気にドンするやつ

    select count(*) とかだと、大量レコードのテーブルカウントは時間がかかりすぎる

    一気にドンしたい場合はこれ

    select relname, n_live_tup from pg_stat_user_tables where schemaname = 'public' order by relname; 以上