Загрузка данных


select
    con.conname,
    pg_get_constraintdef(con.oid) as constraint_definition
from pg_constraint con
where con.conrelid = 'ourpension.npo_pension_agreement'::regclass
  and con.contype = 'f'
order by con.conname;