Опишите таблицу постгров
postgres=# \d schema.tablename;
Witty Wolverine
postgres=# \d schema.tablename;
SELECT
table_name,
column_name,
data_type
FROM
information_schema.columns
WHERE
table_name = 'city';
postgres=# \d tablename;