Postgres получить имена столбцов
SELECT *
FROM information_schema.columns
WHERE table_name = 'your_table'
;
Ninja Pinguin
SELECT *
FROM information_schema.columns
WHERE table_name = 'your_table'
;