@@ -49,11 +49,11 @@ static booldelayed_shutdown = false; /* pathman was dropped */
49
49
} while (0)
50
50
51
51
52
+ static bool try_perform_parent_refresh (Oid parent );
52
53
static Oid try_syscache_parent_search (Oid partition ,PartParentSearch * status );
53
54
static Oid get_parent_of_partition_internal (Oid partition ,
54
55
PartParentSearch * status ,
55
56
HASHACTION action );
56
- static bool perform_parent_refresh (Oid parent );
57
57
58
58
59
59
/*
@@ -332,7 +332,7 @@ finish_delayed_invalidation(void)
332
332
Oid vague_rel = lfirst_oid (lc );
333
333
334
334
/* It might be a partitioned table or a partition */
335
- if (!perform_parent_refresh (vague_rel ))
335
+ if (!try_perform_parent_refresh (vague_rel ))
336
336
{
337
337
PartParentSearch search ;
338
338
Oid parent ;
@@ -343,7 +343,7 @@ finish_delayed_invalidation(void)
343
343
{
344
344
/* It's still parent */
345
345
case PPS_ENTRY_PART_PARENT :
346
- perform_parent_refresh (parent );
346
+ try_perform_parent_refresh (parent );
347
347
break ;
348
348
349
349
/* It *might have been* parent before (not in PATHMAN_CONFIG) */
@@ -527,8 +527,13 @@ try_syscache_parent_search(Oid partition, PartParentSearch *status)
527
527
}
528
528
}
529
529
530
+ /*
531
+ * Try to refresh cache entry for relation 'parent'.
532
+ *
533
+ * Return true on success.
534
+ */
530
535
static bool
531
- perform_parent_refresh (Oid parent )
536
+ try_perform_parent_refresh (Oid parent )
532
537
{
533
538
Datum values [Natts_pathman_config ];
534
539
bool isnull [Natts_pathman_config ];