Fix ALTER INDEX RENAME so that if the index belongs to a unique or primary key
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jan 2008 18:56:54 +0000 (18:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jan 2008 18:56:54 +0000 (18:56 +0000)
commit7ff56058b686d18d86dc479132fa818d50c015f5
tree044d9d48e197356c4d15b676060707b481e62457
parent2a806402f7b21f62aa93cbb958a1d2cd3149c6ab
Fix ALTER INDEX RENAME so that if the index belongs to a unique or primary key
constraint, the constraint is renamed as well.  This avoids inconsistent
situations that could confuse pg_dump (not to mention humans).  We might at
some point provide ALTER TABLE RENAME CONSTRAINT as a more general solution,
but there seems no reason not to allow doing it this way too.  Per bug #3854
and related discussions.
src/backend/catalog/pg_constraint.c
src/backend/commands/tablecmds.c
src/include/catalog/pg_constraint.h