Shouldn't: alter table xxx rename to yyyalso adjust the index built as a side effect of 'primary key'in the create table operation?
Les Mikesell les(at)mcs(dot)com