pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Bryce Nesbitt <bryce2@obviously.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats
Date: Thu, 5 Mar 2015 16:44:57 -0300
Message-ID: <20150305194457.GU3291@alvh.no-ip.org> (raw)
In-Reply-To: <CAC9LFPenveGXu7YhOv6L6fmmhN6NFq3L23aQsts+JKLbsaDvkQ@mail.gmail.com>
References: <20150305181432.2529.76377@wrigleys.postgresql.org>
	<28362.1425579781@sss.pgh.pa.us>
	<CAC9LFPenveGXu7YhOv6L6fmmhN6NFq3L23aQsts+JKLbsaDvkQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


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



view thread (12+ messages)  latest in thread

Message-ID: <20150305194457.GU3291@alvh.no-ip.org>
Permalink:  ../20150305194457.GU3291@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20150305194457.GU3291@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, bryce2@obviously.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats
  In-Reply-To: <20150305194457.GU3291@alvh.no-ip.org>
  References: <20150305181432.2529.76377@wrigleys.postgresql.org> <28362.1425579781@sss.pgh.pa.us> <CAC9LFPenveGXu7YhOv6L6fmmhN6NFq3L23aQsts+JKLbsaDvkQ@mail.gmail.com> <20150305194457.GU3291@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox