Re: [PERFORM] Why is not using the index

2005-08-11 Thread Luis Cornide Arce
: Luis Cornide Arce wrote: Hi everyone, I have some problems with a quite long query and the plan postgreSQL is choosing. The query joins 12 tables and in the WHERE clause I use a IN expression with a lot of identifiers (up to 2000). The problem is that the planner is proposing a seq_scan on

[PERFORM] Why is not using the index

2005-08-11 Thread Luis Cornide Arce
Hi everyone, I have some problems with a quite long query and the plan postgreSQL is choosing. The query joins 12 tables and in the WHERE clause I use a IN _expression_ with a lot of identifiers (up to 2000). The problem is that the planner is proposing a seq_scan on two tables 2M rows each (i