pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
Date: Fri, 18 Mar 2016 23:17:25 +0100
Message-ID: <fff1884f-9649-4024-06a8-b471f3072ec8@2ndquadrant.com> (raw)
In-Reply-To: <20160318221317.GA182976@alvherre.pgsql>
References: <20160318221317.GA182976@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

On 03/18/2016 11:13 PM, Alvaro Herrera wrote:
> David Gould wrote:
>
>> I have some thoughts for a different approach. In short, the stats collector
>> actually knows what needs vacuuming because queries that create dead tuples
>> tell it. I'm considering have the stats collector maintain a queue of
>> vacuum work and that autovacuum request work from the stats collector. When I
>> have something more concrete I'll post it on hackers.
>
> Hm, ideally we would have something backpatchable, but this new idea
> doesn't sound so to me.  I think that having some variant of the patch
> you proposed previously would be better for the stable branches.

I believe implementing such queue in the pgstat will be rather 
difficult, for example because you can tweak the limits in reloptions, 
and those are only accessible in the database. So pgstat does not know 
that and thus can't really decide what needs autovacuuming etc.

regards

-- 
Tomas Vondra                  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 (38+ messages)  latest in thread

Message-ID: <fff1884f-9649-4024-06a8-b471f3072ec8@2ndquadrant.com>
Permalink:  ../fff1884f-9649-4024-06a8-b471f3072ec8@2ndquadrant.com/
Also on:    postgresql.org/message-id/fff1884f-9649-4024-06a8-b471f3072ec8@2ndquadrant.com

 · 

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: tomas.vondra@2ndquadrant.com
  Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
  In-Reply-To: <fff1884f-9649-4024-06a8-b471f3072ec8@2ndquadrant.com>
  References: <20160318221317.GA182976@alvherre.pgsql> <fff1884f-9649-4024-06a8-b471f3072ec8@2ndquadrant.com>

* 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