psql rename constraint code example Example: rename constraint postgresql ALTER INDEX commerce_contractor_pkey RENAME TO whatever_new_name