3 SHOW plantuner.disable_index;
5 CREATE TABLE wow (i int, j int);
6 CREATE INDEX i_idx ON wow (i);
7 CREATE INDEX j_idx ON wow (j);
8 CREATE INDEX i1 ON WOW (i);
9 CREATE INDEX i2 ON WOW (i);
10 CREATE INDEX i3 ON WOW (i);
12 SET enable_seqscan=off;
16 SET plantuner.disable_index="i_idx, j_idx";
20 SHOW plantuner.disable_index;
22 SET plantuner.disable_index="i_idx, nonexistent, public.j_idx, wow";
24 SHOW plantuner.disable_index;
26 SET plantuner.enable_index="i_idx";
28 SHOW plantuner.enable_index;
32 RESET plantuner.disable_index;
33 RESET plantuner.enable_index;
35 SET enable_seqscan=off;
36 SET enable_bitmapscan=off;
37 SET enable_indexonlyscan=off;
39 SET plantuner.only_index="i1";
40 SHOW plantuner.only_index;
42 EXPLAIN (COSTS OFF) SELECT * FROM wow WHERE i = 0;
44 SET plantuner.disable_index="i1,i2,i3";
45 EXPLAIN (COSTS OFF) SELECT * FROM wow WHERE i = 0;
47 SET plantuner.only_index="i2";
48 EXPLAIN (COSTS OFF) SELECT * FROM wow WHERE i = 0;
50 RESET plantuner.only_index;
51 EXPLAIN (COSTS OFF) SELECT * FROM wow WHERE i = 0;