File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 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;
1414DROP EXTENSION pg_pathman;
1515-- create it for further tests
1616CREATE 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
1722-- 079797e0d5
1823CREATE TABLE part_test(val serial);
1924INSERT 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;
1616-- create it for further tests
1717CREATE EXTENSION pg_pathman;
1818
19+ -- make sure nothing breaks on disable/enable
20+ SET pg_pathman .enable = false;
21+ SET pg_pathman .enable = true;
22+
1923-- 079797e0d5
2024CREATE TABLE part_test (val serial );
2125INSERT 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)
403403 }
404404
405405 /* 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+ }
409412}
410413
411414
You can’t perform that action at this time.
0 commit comments