From a4167d7cda0265298f6bbc450dc564fe9dbc30c7 Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Tue, 22 Oct 2024 10:36:18 +0500 Subject: [PATCH] fix --- src/relation_cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/relation_cache.c b/src/relation_cache.c index b5624c42..9fa85055 100644 --- a/src/relation_cache.c +++ b/src/relation_cache.c @@ -386,6 +386,8 @@ show_relation_cache(PG_FUNCTION_ARGS) relation_cache_ctx->relation_cache = diskquota_hash_create("relation_cache_ctx->relation_cache", 1024, &hashctl, HASH_ELEM | HASH_CONTEXT, DISKQUOTA_OID_HASH); + remove_committed_relation_from_cache(); + LWLockAcquire(diskquota_locks.relation_cache_lock, LW_SHARED); hash_seq_init(&hash_seq, relation_cache); while ((entry = (DiskQuotaRelationCacheEntry *)hash_seq_search(&hash_seq)) != NULL)