postgresql生成数据字典
select(select relname ||’–’||(select description from pg_description where objoid = oid and objsubid = 0) from pg_class where oid=a.attrelid) as 表名,a.attname as 列名,format_type(a.atttypid,a.atttypmod) as 类型,(case when atttypmod-4>0 then atttypm