0

postgres: columns list

SELECT column_name FROM information_schema.COLUMNS WHERE TABLE_NAME='table_name'