File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ CREATE EXTENSION pg_pathman;
14
14
DROP EXTENSION pg_pathman;
15
15
-- create it for further tests
16
16
CREATE EXTENSION pg_pathman;
17
+ -- make sure nothing breaks on disable/enable
18
+ SET pg_pathman.enable = false;
19
+ NOTICE: RuntimeAppend, RuntimeMergeAppend and PartitionFilter nodes and some other options have been disabled
20
+ SET pg_pathman.enable = true;
21
+ NOTICE: RuntimeAppend, RuntimeMergeAppend and PartitionFilter nodes and some other options have been enabled
17
22
-- 079797e0d5
18
23
CREATE TABLE part_test(val serial);
19
24
INSERT INTO part_test SELECT generate_series(1, 30);
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ DROP EXTENSION pg_pathman;
16
16
-- create it for further tests
17
17
CREATE EXTENSION pg_pathman;
18
18
19
+ -- make sure nothing breaks on disable/enable
20
+ SET pg_pathman .enable = false;
21
+ SET pg_pathman .enable = true;
22
+
19
23
-- 079797e0d5
20
24
CREATE TABLE part_test (val serial );
21
25
INSERT INTO part_test SELECT generate_series(1 , 30 );
Original file line number Diff line number Diff line change @@ -403,9 +403,12 @@ fini_local_cache(void)
403
403
}
404
404
405
405
/* Now we can clear allocations */
406
- MemoryContextReset (PathmanParentsCacheContext );
407
- MemoryContextReset (PathmanStatusCacheContext );
408
- MemoryContextReset (PathmanBoundsCacheContext );
406
+ if (TopPathmanContext )
407
+ {
408
+ MemoryContextReset (PathmanParentsCacheContext );
409
+ MemoryContextReset (PathmanStatusCacheContext );
410
+ MemoryContextReset (PathmanBoundsCacheContext );
411
+ }
409
412
}
410
413
411
414
You can’t perform that action at this time.
0 commit comments