Ensure unlinking of old index file with REINDEX (TABLESPACE)
The original versions of the patch included this part, but a mismerge from my side has made this piece go missing. Oversight in c5b28604.
This commit is contained in:
parent
fc749bc704
commit
5128483d06
@ -3712,6 +3712,12 @@ reindex_index(Oid indexId, bool skip_constraint_checks, char persistence,
|
||||
{
|
||||
/* 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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user