\pset pager off select column_name || '|' || data_type || '|' || is_nullable || '|' || coalesce(column_default,'') from information_schema.columns where table_name='channels' order by ordinal_position; \echo ---abi--- select column_name || '|' || data_type from information_schema.columns where table_name='abilities' order by ordinal_position;