select count(*) とかだと、大量レコードのテーブルカウントは時間がかかりすぎる
一気にドンしたい場合はこれ
select
relname,
n_live_tup
from
pg_stat_user_tables
where
schemaname = 'public'
order by
relname;
以上
|
||||||
PostgreSQLで全テーブルのレコード数を一気にドンするやつselect count(*) とかだと、大量レコードのテーブルカウントは時間がかかりすぎる 一気にドンしたい場合はこれ
以上 Comments are closed. |
||||||
Copyright © 2025 家庭のe学 - All Rights Reserved Powered by WordPress & Atahualpa |
最近のコメント