Skip to content

Commit 2dd78a5

Browse files
committed
Make test from previous commit more useful.
1 parent 09914f4 commit 2dd78a5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Diff for: expected/pathman_cache_pranks.out

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
\set VERBOSITY terse
22
-- is pathman (caches, in particular) strong enough to carry out this?
33
SET search_path = 'public';
4+
-- make sure nothing breaks on disable/enable when nothing was initialized yet
5+
SET pg_pathman.enable = false;
6+
NOTICE: RuntimeAppend, RuntimeMergeAppend and PartitionFilter nodes and some other options have been disabled
7+
SET pg_pathman.enable = true;
8+
NOTICE: RuntimeAppend, RuntimeMergeAppend and PartitionFilter nodes and some other options have been enabled
49
-- wobble with create-drop ext: tests cached relids sanity
510
CREATE EXTENSION pg_pathman;
611
SET pg_pathman.enable = f;
@@ -14,11 +19,6 @@ CREATE EXTENSION pg_pathman;
1419
DROP EXTENSION pg_pathman;
1520
-- create it for further tests
1621
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
2222
-- 079797e0d5
2323
CREATE TABLE part_test(val serial);
2424
INSERT INTO part_test SELECT generate_series(1, 30);

Diff for: sql/pathman_cache_pranks.sql

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
SET search_path = 'public';
55

6+
-- make sure nothing breaks on disable/enable when nothing was initialized yet
7+
SET pg_pathman.enable = false;
8+
SET pg_pathman.enable = true;
9+
610
-- wobble with create-drop ext: tests cached relids sanity
711
CREATE EXTENSION pg_pathman;
812
SET pg_pathman.enable = f;
@@ -16,10 +20,6 @@ DROP EXTENSION pg_pathman;
1620
-- create it for further tests
1721
CREATE EXTENSION pg_pathman;
1822

19-
-- make sure nothing breaks on disable/enable
20-
SET pg_pathman.enable = false;
21-
SET pg_pathman.enable = true;
22-
2323
-- 079797e0d5
2424
CREATE TABLE part_test(val serial);
2525
INSERT INTO part_test SELECT generate_series(1, 30);

0 commit comments

Comments
 (0)