Re: Slow join on partitioned table - Mailing list pgsql-performance

From Robert Haas
Subject Re: Slow join on partitioned table
Date
Msg-id AANLkTi=ZJziFyG4v23grw-gzapFB=uR=yEPzV1DpqhyD@mail.gmail.com
Whole thread Raw
In response to Re: Slow join on partitioned table  (Mark Thornton <mthornton@optrak.co.uk>)
List pgsql-performance
On Fri, Mar 4, 2011 at 12:00 PM, Mark Thornton <mthornton@optrak.co.uk> wrote:
> On 04/03/2011 16:07, Robert Haas wrote:
>>
>> That seems quite surprising. There are only 14 rows in the table but
>> PG thinks 2140?  Do you have autovacuum turned on?  Has this table
>> been analyzed recently?
>>
> I think autovacuum is enabled, but as a temporary table LinkIds has only
> existed for a very short time (at least in my current tests).

Autovacuum doesn't work on temporary tables, so time of existence
doesn't matter in that case.  The best approach is to load the data,
then analyze, then query it.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-performance by date:

Previous
From: Wayne Conrad
Date:
Subject: Re: Linux I/O schedulers - CFQ & random seeks
Next
From: Dan Harris
Date:
Subject: Re: Linux I/O schedulers - CFQ & random seeks