Unique and primary key constraints are both dumped using ALTER TABLE statements. Unique indexes with CREATE INDEX. Basically, pg_constraint left outer'd to pg_index.
pgsql-patches by date:
Соглашаюсь с условиями обработки персональных данных