- 查看当前数据库的数据类型
postgres=# \d pg_type ;
Table "pg_catalog.pg_type"
Column | Type | Modifiers
----------------+--------------+-----------
typname | name | not null
typnamespace | oid | not null
----
//显示所有的type类型以及对应的存储类型:
postgres=# select typname, typstorage from pg_type ;
typname | typstorage
---------------------------------------+------------
bool | p
bytea | x
char | p
name | p
int8 | p
int2 | p
int2vector | p
int4 | p
regproc | p
text | x
oid | p
tid | p
xid | p
cid