postgres alter table drop constraint rename column code example
Example: rename constraint postgresql
ALTER INDEX commerce_contractor_pkey RENAME TO whatever_new_name
ALTER INDEX commerce_contractor_pkey RENAME TO whatever_new_name