[PostgreSQL] 스키마, 테이블 정보 조회

gayoung·2024년 2월 5일

DB

목록 보기
12/16
SELECT schemaname, tablename, tableowner, tablespace,
       hasindexes, hasrules, hastriggers
FROM pg_catalog.pg_tables;
  • schemaname : 스키마 이름
  • tablename : 테이블 이름
  • tableowner : 테이블 소유자의 이름
  • tablespace : 테이블을 포함하는 테이블스페이스의 이름(default = NULL)
  • hasindexes : 테이블 인덱스 여부
  • hasrules : 테이블 규칙 여부
  • hastriggers : 테이블 트리거 여부

0개의 댓글