Forgot to mention that addingDROP TABLE v_idx ;before the END WORK will fix things. However, I was under the impression thattemporary tables would go away after a transaction in which they were createdwas committed.