Skip to content

Commit ad580df

Browse files
committed
pathman: on_partition_remove fix
1 parent f85909e commit ad580df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/pg_pathman/init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,8 @@ remove_relation_info(Oid relid)
480480
free_dsm_array(&rangerel->ranges);
481481
free_dsm_array(&prel->children);
482482
hash_search(range_restrictions, (const void *) &key, HASH_REMOVE, NULL);
483-
hash_search(relations, (const void *) &key, HASH_REMOVE, NULL);
484483
break;
485484
}
486485
prel->children_count = 0;
487-
hash_search(relations, (const void *) &relid, HASH_REMOVE, 0);
486+
hash_search(relations, (const void *) &key, HASH_REMOVE, 0);
488487
}

0 commit comments

Comments
 (0)