여러 테이블의 COUNT(*) 동시에 확인하기

SELECT relname AS TABLE_NAME, reltuples AS ROW_COUNT
  FROM pg_class
 WHERE relname IN ('테이블명1', '테이블명2', '테이블명3')
   AND reltype > 0   -- 테이블로 필터링

-- WHERE UPPER(relname) IN ('TAB1', 'TAB2', 'TAB3')
-- WHERE relname LIKE ANY('{pd%, td%, cb%}')
;

주의사항