From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Michael Fuhr <mike(at)fuhr(dot)org> |
Cc: | "Harvey, Allan AC" <HarveyA(at)OneSteel(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: table configuration tweak for performance gain. |
Date: | 2004-11-15 15:26:05 |
Message-ID: | 7954.1100532365@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Michael Fuhr <mike(at)fuhr(dot)org> writes:
> On Mon, Nov 15, 2004 at 04:25:59PM +1100, Harvey, Allan AC wrote:
>> I created an index on the dt column, ran ANALYSE then,
>> EXPLAIN for some queries.
>> The returned plan was always sequential search.
> Could you post a query and the EXPLAIN ANALYZE output? We could
> probably give better advice if we could see what's happening.
Also, let's see EXPLAIN ANALYZE results after setting enable_seqscan to
OFF. If that doesn't force it into an indexscan, then you have got
more fundamental issues (perhaps a datatype mismatch). Note that I
don't recommend turning off enable_seqscan as a production solution;
but it's a useful tool for debugging.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Taber, Mark | 2004-11-15 15:52:12 | I'm sure a good time was had by many... |
Previous Message | Sim Zacks | 2004-11-15 13:58:12 | Re: Data from Internet direct into PostgeSQL Database?? |