Only append primary key columns to the index key format once.