Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats
Date
Msg-id 20150305194457.GU3291@alvh.no-ip.org
Whole thread Raw
In response to Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats  (Bryce Nesbitt <bryce2@obviously.com>)
Responses Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats
List pgsql-bugs
Bryce Nesbitt wrote:

> Is autovac writing anything of import during its periodic wakeup on an
> idle cluster?

Autovacuum is not writing anything.  What it is doing is asking whether
anyone has written anything -- and the stats collector responds by
writing these stat files.

The issue is that the timestamp-of-last-update bit, which is critical to
autovacuum, does not get written unless the whole file is.  I guess it
is possible to optimize that, so that the file is not touched other than
the timestamp if the database has been completely idle.  I have no idea
how complex this is, or whether this scenario is really worth
optimizing.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

pgsql-bugs by date:

Previous
From: Bryce Nesbitt
Date:
Subject: Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats
Next
From: Bryce Nesbitt
Date:
Subject: Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats