I'm trying to compare a query's performance with and without an index. I tried setting enable_indexscan
to False
, but the query planner still uses an index (EXPLAIN SELECT ...
shows exactly the same result). What am I doing wrong?
Here's what I'm running:
SET enable_indexscan = False;
EXPLAIN SELECT * FROM table WHERE indexed_column='some_value';
Query plan (irrespective of enable_indexscan
):