Add an index to the temporary table