select attname from pg_attribute where attrelid = (select oid from pg_class where relname = ‘テーブル名’) and attnum > 0 and atttypid > 0;
select attname from pg_attribute where attrelid = (select oid from pg_class where relname = ‘テーブル名’) and attnum > 0 and atttypid > 0;