forbid_index => disable_index. Introduce enable_index overloads disable_index
[plantuner.git] / expected / plantuner.out
1 LOAD 'plantuner';
2 SHOW    plantuner.disable_index;
3  plantuner.disable_index 
4 -------------------------
5  
6 (1 row)
7
8 CREATE TABLE wow (i int, j int);
9 CREATE INDEX i_idx ON wow (i);
10 CREATE INDEX j_idx ON wow (j);
11 SET enable_seqscan=off;
12 SELECT * FROM wow;
13  i | j 
14 ---+---
15 (0 rows)
16
17 SET plantuner.disable_index="i_idx, j_idx";
18 SELECT * FROM wow;
19  i | j 
20 ---+---
21 (0 rows)
22
23 SHOW plantuner.disable_index;
24   plantuner.disable_index   
25 ----------------------------
26  public.i_idx, public.j_idx
27 (1 row)
28
29 SET plantuner.disable_index="i_idx, nonexistent, public.j_idx, wow";
30 WARNING:  'nonexistent' does not exist
31 WARNING:  'wow' is not an index
32 SHOW plantuner.disable_index;
33   plantuner.disable_index   
34 ----------------------------
35  public.i_idx, public.j_idx
36 (1 row)
37
38 SET plantuner.enable_index="i_idx";
39 SHOW plantuner.enable_index;
40  plantuner.enable_index 
41 ------------------------
42  public.i_idx
43 (1 row)
44
45 SELECT * FROM wow;
46  i | j 
47 ---+---
48 (0 rows)
49