We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ac4bf commit b7ee080Copy full SHA for b7ee080
src/relation_info.c
@@ -702,10 +702,19 @@ try_perform_parent_refresh(Oid parent)
702
void
703
forget_constraint_of_partition(Oid partition)
704
{
705
- pathman_cache_search_relid(constraint_cache,
706
- partition,
707
- HASH_REMOVE,
708
- NULL);
+ PartConstraintInfo *pcon = pathman_cache_search_relid(constraint_cache,
+ partition,
+ HASH_FIND,
+ NULL);
709
+ if (pcon)
710
+ {
711
+ /* FIXME: implement pfree(constraint) logc */
712
+
713
+ pathman_cache_search_relid(constraint_cache,
714
715
+ HASH_REMOVE,
716
717
+ }
718
}
719
720
/* Return partition's constraint as expression tree */
0 commit comments