Re: [HACKERS] unusual performance for vac following 8.2 upgrade - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: [HACKERS] unusual performance for vac following 8.2 upgrade
Date
Msg-id 20070111194928.GC10464@alvh.no-ip.org
Whole thread Raw
In response to Re: unusual performance for vac following 8.2 upgrade  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] unusual performance for vac following 8.2 upgrade
List pgsql-performance
Tom Lane wrote:

> What I think we need to do about this is
>
> (1) fix pgstat_vacuum_tabstats to have non-O(N^2) behavior; I'm thinking
> of using a hash table for the OIDs instead of a linear list.  Should be
> a pretty small change; I'll work on it today.
>
> (2) Reconsider whether last-vacuum-time should be sent to the collector
> unconditionally.

(2) seems a perfectly reasonably answer, but ISTM (1) would be good to
have anyway (at least in HEAD).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: unusual performance for vac following 8.2 upgrade
Next
From: "Simon Riggs"
Date:
Subject: Re: unusual performance for vac following 8.2 upgrade