Re: Slow join on partitioned table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 4, 2011 at 12:00 PM, Mark Thornton <mthornton@xxxxxxxxxxxx> 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

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux