카탈로그PG_CLASS카탈로그pg_index), 시퀀스, 뷰,Relkind. Below, when we mean all of these"관계". 모든 열이 의미있는 것은 아닙니다
표 45-11.PG_CLASS열
이름 | type | 참조 | 설명 |
---|---|---|---|
Relname | 이름 | 표, 색인,보기 등의 이름 | |
Relnamespace | OID | pg_namespace.Oid | 이것을 포함하는 네임 스페이스의 OID |
RelType | OID | pg_type.Oid | 이것에 해당하는 데이터 유형의 OIDpg_typeEntry) |
regoftype | OID | pg_type.Oid | For typed tables, the OID of the underlying composite |
relowner | OID | pg_authid.Oid | 관계의 소유자 |
Relam | OID | PG_AM.Oid | If this is an index, the access method used (B-tree, |
relfilenode | OID | Name of the on-disk file of this relation; zero means"매핑"relation | |
reltablespace | OID | PG_TABLESPACE.Oid | 이 관계가 저장된 테이블 스페이스. 만약에 |
Relpages | int4 | Size of the on-disk representation of this table inblcksz). 이것은진공, 분석및와 같은 몇 가지 DDL 명령색인 생성. | |
Reltuples | float4 | Number of rows in the table. This is only an estimate진공, 분석,생성. | |
Relallvisible | int4 | 진공, 분석,생성. | |
reltoastrelid | OID | PG_CLASS.Oid | 이 테이블과 관련된 토스트 테이블의 OID, 0"OUT"보조 |
reltoastidxid | OID | PG_CLASS.Oid | For a TOAST table, the OID of its index. 0 if not a |
Relhasindex | bool | True if this is a table and it has (or recently had) | |
Relisshared | bool | 이 테이블이 모든 데이터베이스에서 공유되는 경우 Truepg_database) 공유. | |
Relpersistence | char | p= 영구 테이블,u= 미등록 테이블,t= 임시 표 | |
Relkind | char | r= 일반 테이블,i= index,S= 시퀀스,v=c= 복합 유형,t= 토스트 테이블,f= 외국 표 | |
Relnatts | int2 | 관계의 사용자 열 수 (시스템pg_attribute. 참조 참조pg_attribute. | |
RelChecks | int2 | 수check제약pg_constraint카탈로그 | |
Relhasoids | bool | True if we generate an OID for each row of the | |
Relhaspkey | bool | 테이블에 1 차 (또는 한 번은)가있는 경우 True | |
Relhasrules | bool | 테이블이 규칙이 있거나 한 번이있는 경우 참입니다. 보다pg_rewrite카탈로그 | |
Relhastriggers | bool | 테이블이 트리거가있는 경우 (또는 한 번은); 보다범퍼카 토토 : 문서카탈로그 | |
Relhassubclass | bool | True if table has (or once had) any inheritance | |
relfrozenxid | xid | All transaction IDs before this one have been"Frozen")이 테이블의 트랜잭션 ID.PG_CLOG줄어들려고합니다.invalidtransactionID) if | |
relacl | aclitem [] | 액세스 권한; 보다grantandRevoke자세한 내용 | |
재학 | 텍스트 [] | 액세스-메드-특정 옵션, AS"키워드 = value"Strings |
부울 깃발 중 일부PG_CLASS는 게으르게 유지됩니다Relhasindex색인 생성, 그러나 그것은 결코 지우지 않습니다Drop Index. 대신에,진공CLEARSRelhasindex테이블에 없음이 없습니다