Denis Gasparin <denis(at)edinet(dot)it> writes:
> Is it possible that the query planner thinks that is best a sequential scan
> when an index on the table is present?
Possibly. It all depends on the statistics. You have not shown us the
EXPLAIN results obtained after doing VACUUM ANALYZE...
regards, tom lane