PostgreSQL查询数据库中包含某种类型的表有哪些

select c.relname, ATTNAME, ATTTYPID, TYPNAME from sys_attribute a, sys_class c, sys_namespace n, sys_type t where a.attrelid = c.oid and a.attnum > 0  and c.relnamespace = n.oid and nspname = 'public' and a.atttypid = t.oid and typname = 'TEXT' and c.relkind = 'r';

原文地址:https://www.cnblogs.com/kuang17/p/11452054.html