Thom Brown <t...@linux.com> writes: > So an index-only scan is 30 times slower in this particular test case.
Don't see why you'd find that unexpected. If you have to visit all the rows, a seqscan is usually going to be the best way. An indexscan only has a chance of winning when the index is much smaller than the table, which isn't the case in your example, even if you hadn't seen to it that the index wasn't particularly nicely physically ordered. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers