4.pg_attribute
postgres=
数据表 "pg_catalog.pg_attribute"
栏位 | 类型 | 可空的 | 存储 | 描述
attrelid | oid | not null | plain |列所属的表
attname | name | not null | plain |列名
atttypid | oid | not null | plain |列的数据类型
attstattarget | integer | not null | plain |attstattarget控制由ANALYZE对此列收集的统计信息的细节层次。
attlen | smallint | not null | plain |本列类型的pg_type.typlen一个拷贝
attnum | smallint | not null | plain |列的编号
attndims | integer | not null | plain |如果该列是一个数组类型,这里就是其维度数;否则为0。
attcacheoff | integer | not null | plain |在存储中总是为-1
atttypmod | integer | not null | plain |atttypmod记录了在表创建时提供的类型相关数据
attbyval | boolean | not null | plain |该列类型的pg_type.typbyval的一个拷贝
attstorage | "char" | not null | plain |通常是该列类型的pg_type.typstorage的一个拷贝
attalign | "char" | not null | plain |通常是该列类型的pg_type.typalign的一个拷贝该列类型的pg_type.typstorage的一个拷贝。
attnotnull | boolean | not null | plain |这表示一个非空约束
atthasdef | boolean | not null | plain |该列有一个默认值,在此情况下在pg_attrdef目录中会有一个对应项来真正记录默认值。
atthasmissing | boolean | not