select fieldvalues and column-description of a table
The only way I can think of is something like this:

select t.id, x.remarks -&gt;&gt; 'id',
       t.col1, x.remarks -&gt;&gt; 'col1',
       t.col2, x.remarks -&gt;&gt; 'col2'
from the_table t
 join lateral ( 
    select jsonb_object_agg(a.attname, col_description(a.attrelid, a.attnum)) as remarks
    from pg_attribute a 
    where a.attrelid = t.tableoid
    and a.attnum &gt; 0
 ) x on true


The inner query aggregates all column descriptions of the table into a single JSON value that can be accessed easily in the outer query.