Do not cache all the metadata during fix_all_partition_shard_index_names

pull/6086/head
Onder Kalaci 2022-07-26 15:15:35 +02:00
parent 26fdcb68f0
commit f076e81166
1 changed files with 7 additions and 0 deletions

View File

@ -205,6 +205,13 @@ fix_partition_shard_index_names(PG_FUNCTION_ARGS)
FixPartitionShardIndexNames(relationId, parentIndexOid);
/*
* This UDF is called from fix_all_partition_shard_index_names() which iterates
* over all the partitioned tables. There is no need to hold all the distributed
* table metadata until the end of the transaction for the input table.
*/
CitusTableCacheFlushInvalidatedEntries();
PG_RETURN_VOID();
}