Re: reducing statistics write overhead - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: reducing statistics write overhead
Date
Msg-id 20080906180217.GA4051@alvh.no-ip.org
Whole thread Raw
In response to Re: reducing statistics write overhead  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: reducing statistics write overhead  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: reducing statistics write overhead  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: reducing statistics write overhead  (Martin Pihlak <martin.pihlak@gmail.com>)
List pgsql-hackers
Tom Lane escribió:

> (In fact, maybe this patch ought to include some sort of maximum update
> rate tunable?  The worst case behavior could actually be WORSE than now.)

Some sort of "if stats were requested in the last 500 ms, just tell the
requester to read the existing file".

Things that come to mind:

- autovacuum could use a more frequent stats update in certain cases

- Maybe we oughta have separate files, one for each database?  That way
we'd reduce unnecessary I/O traffic for both the reader and the writer.

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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: reducing statistics write overhead
Next
From: Tom Lane
Date:
Subject: Re: reducing statistics write overhead