Cek Ukuran 10 Tabel Terbesar Dalam Database PostgreSQL



Jalankan Query Berikut:

select now(); SELECT n.nspname as "Schema",

  c.relname as "Name",

  pg_catalog.pg_size_pretty(pg_catalog.pg_table_size(c.oid)) as "Size"

FROM pg_catalog.pg_class c

     LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace

WHERE c.relkind IN ('r','p','')

      AND n.nspname <> 'pg_catalog'

      AND n.nspname <> 'information_schema'

      AND n.nspname !~ '^pg_toast'

ORDER BY pg_catalog.pg_table_size(c.oid) desc limit 10;


4 komentar

29 Maret 2021 pukul 21.26

ini nya bisa hapus biar semua table pada semua schema
AND pg_catalog.pg_table_is_visible(c.oid)

Reply
avatar
Anonim
2 Februari 2022 pukul 09.18

Online Casino site, play roulette at Lucky Club
Play roulette at the best 카지노사이트luckclub online casinos in India with real dealers. Sign up now to get our amazing Welcome bonus, Live Casino: Slots, Roulette Rating: 5 · ‎3 votes

Reply
avatar