Do not cache all the metadata during fix_all_partition_shard_index_names

(cherry picked from commit f076e81166)
release-11-onder-27-july
Onder Kalaci 2022-07-26 15:15:35 +02:00
parent 377375de2a
commit 2a684e426c
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); 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(); PG_RETURN_VOID();
} }