Database ( DB )/Database

postgresql table row count

노루아부지 2019. 8. 4. 22:53

SELECT schemaname,relname,n_live_tup  
  FROM pg_stat_user_tables
  ORDER BY n_live_tup DESC;  

 

 

row가 존재하는 table list가 필요하면

  where n_live_tup > 0  을 추가한다. 

728x90

'Database ( DB ) > Database' 카테고리의 다른 글

postgresql에서 백업받아서 mysql에 insert  (0) 2019.08.04
postgresql db 접속  (0) 2019.08.04
postgresql 활동내역 확인  (0) 2019.08.04
postgresql 에러 로그 확인  (0) 2019.08.04
Postgresql 설치 에러날 때  (0) 2019.08.04
loading