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';