54c34f944fbef54aef87da8af686cad681df73b7
[plantuner.git] / README.plantuner
1 plantuner module provides plantuner.forbid_index GUC which contains comma-separated 
2 list of indexes forbidden to use in query.
3
4 USAGE (see sql/plantuner.sql:
5 % LOAD 'plantuner';
6 % SET plantuner.forbid_index="i_idx, j_idx";
7 % SET enable_seqscan=off;
8 % explain SELECT * FROM wow;
9                                 QUERY PLAN                                
10 --------------------------------------------------------------------------
11  Seq Scan on wow  (cost=10000000000.00..10000000031.40 rows=2140 width=8)
12
13
14 It's recommended to load library by shared_preload_libraries option
15 in postgresql.conf