Re: help understanding analyze

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Luca Ferrari <fluca1978(at)infinito(dot)it>, pgsql-general(at)postgresql(dot)org
Subject: Re: help understanding analyze
Date: 2006-12-09 17:49:46
Message-ID: 18922.1165686586@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> At a guess your table is not big enough to make an index worthwhile. If
> your table is only a few pages long, it's just not efficient to lookup
> an index first.
> If you post the results of EXPLAIN ANALYZE we can tell you for sure.

Actually, it would be interesting to see EXPLAIN ANALYZE for the query
both with enable_sort = on and enable_sort = off. That would show what
the planner thinks the relative costs are as well as what the true costs
are.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jamie Lawrence Jenner 2006-12-09 21:32:35 db andtable schemas
Previous Message Martijn van Oosterhout 2006-12-09 14:01:27 Re: PostgreSQL 8.2.0 and ip4r?