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 33689dc commit 0074a3aCopy full SHA for 0074a3a
src/hooks.c
@@ -777,7 +777,7 @@ pathman_prepare_drop(Node *parsetree)
777
{
778
RangeVar *rv = makeRangeVarFromNameList((List *) lfirst(cell));
779
Oid relid = RangeVarGetRelid(rv, lockmode, true);
780
- Relation rel = heap_open(relid, lockmode);
+ Relation rel;
781
782
if (!OidIsValid(relid))
783
@@ -790,6 +790,8 @@ pathman_prepare_drop(Node *parsetree)
790
rv->relname)));
791
}
792
793
+ rel = heap_open(relid, lockmode);
794
+
795
/* Is it pg_pathman's partitioned table? */
796
if (get_pathman_relation_info(relid) != NULL)
797
0 commit comments