=?iso-8859-1?q?Xevi=20Serrats?= <tomcatbsd(at)yahoo(dot)es> writes:
> pfc=# explain select * from document where codi=2;
> QUERY PLAN
> ----------------------------------------------------------
> Seq Scan on document (cost=0.00..1.19 rows=1 width=120)
> Filter: (codi = 2)
> (2 rows)
Judging from the cost estimate, this table is too small to bother with
an indexscan.
regards, tom lane