SELECT oid FROM pg_class WHERE relname = 'mytable'; SELECT relname FROM pg_class WHERE oid in (16391,16394,16397);
SELECT * FROM pg_attribute WHERE attrelid = 'mytable'::regclass;
参考> https://www.jianshu.com/p/1f096df47f83