Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbcc3744

Browse files
committed
reuse invalidate_pathman_relation_info() in remove_pathman_relation_info()
1 parentedc7a1f commitbcc3744

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

‎src/relation_info.c

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -508,19 +508,14 @@ get_pathman_relation_info_after_lock(Oid relid,
508508
void
509509
remove_pathman_relation_info(Oidrelid)
510510
{
511-
PartRelationInfo*prel=pathman_cache_search_relid(partitioned_rels,
512-
relid,HASH_FIND,
513-
NULL);
514-
if (PrelIsValid(prel))
515-
{
516-
FreeChildrenArray(prel);
517-
FreeRangesArray(prel);
518-
FreeIfNotNull(prel->attname);
519-
}
511+
boolfound;
512+
513+
/* Free resources */
514+
invalidate_pathman_relation_info(relid,&found);
520515

521516
/* Now let's remove the entry completely */
522-
pathman_cache_search_relid(partitioned_rels,relid,
523-
HASH_REMOVE,NULL);
517+
if (found)
518+
pathman_cache_search_relid(partitioned_rels,relid,HASH_REMOVE,NULL);
524519

525520
elog(DEBUG2,
526521
"Removing record for relation %u in pg_pathman's cache [%u]",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp