pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: David Gould <daveg@sonic.net>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Cc: Josh Berkus <josh@agliodbs.com>
Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
Date: Fri, 18 Mar 2016 02:15:50 -0500
Message-ID: <56EBAB26.4090905@BlueTreble.com> (raw)
In-Reply-To: <20160315142816.5dca09dd@engels>
References: <20160302034537.0b1c2da7@engels>
	<20160315204026.GA29216@alvherre.pgsql>
	<20160315142816.5dca09dd@engels>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 3/15/16 4:28 PM, David Gould wrote:
> The more I learned about autovacuum
> scheduling the less it made sense. Really, there should be some sort of
> priority order for vacuuming based on some metric of need and tables should be
> processed in that order.

+1. What's there now is incredibly braindead.

I actually wonder if instead of doing all the the hard way in C whether 
we should just use SPI for each worker to build it's list of tables. The 
big advantage that would provide is the ability for users to customize 
the scheduling, but I suspect it'd make the code simpler too.

The same is also true for deciding what database needs to be vacuumed next.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


-- 
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: <56EBAB26.4090905@BlueTreble.com>
Permalink:  ../56EBAB26.4090905@BlueTreble.com/
Also on:    postgresql.org/message-id/56EBAB26.4090905@BlueTreble.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: Jim.Nasby@BlueTreble.com, daveg@sonic.net, alvherre@2ndquadrant.com, jeff.janes@gmail.com, tgl@sss.pgh.pa.us, josh@agliodbs.com
  Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
  In-Reply-To: <56EBAB26.4090905@BlueTreble.com>
  References: <20160302034537.0b1c2da7@engels> <20160315204026.GA29216@alvherre.pgsql> <20160315142816.5dca09dd@engels> <56EBAB26.4090905@BlueTreble.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