Bill Martin <bill.martin@xxxxxxxxxxxxx> writes: > I´ve tried different values for the statistics but it is all the same (the planner decide to switch to a seqscan if the limit is 10). > ALTER TABLE core_content ALTER column content SET STATISTICS 1000; Um, did you actually do an ANALYZE after changing that? regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance