The original versions of the patch included this part, but a mismerge
from my side has made this piece go missing. Oversight in
c5b28604.
{
/* Update its pg_class row */
SetRelationTableSpace(iRel, params->tablespaceOid, InvalidOid);
+
+ /*
+ * Schedule unlinking of the old index storage at transaction
+ * commit.
+ */
+ RelationDropStorage(iRel);
RelationAssumeNewRelfilenode(iRel);
/* Make sure the reltablespace change is visible */