pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: David Gould <daveg@sonic.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
Date: Fri, 30 Oct 2015 12:51:43 -0400
Message-ID: <15347.1446223903@sss.pgh.pa.us> (raw)
In-Reply-To: <20151030161150.GI5726@alvherre.pgsql>
References: <20151030133252.3033.4249@wrigleys.postgresql.org>
	<20151030134646.GE5726@alvherre.pgsql>
	<20151030072704.1a4db344@engels>
	<20151030151711.GF5726@alvherre.pgsql>
	<13594.1446219627@sss.pgh.pa.us>
	<20151030154937.GH5726@alvherre.pgsql>
	<13962.1446220437@sss.pgh.pa.us>
	<20151030161150.GI5726@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> Good point ... shouldn't we have already checked the stats before ever
>> deciding to try to claim the table?

> The second check is there to allow for some other worker (or manual
> vacuum) having vacuumed it after we first checked, but which had
> finished before we check the array of current jobs.

I wonder whether that check costs more than it saves.

			regards, tom lane


-- 
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: <15347.1446223903@sss.pgh.pa.us>
Permalink:  ../15347.1446223903@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15347.1446223903@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, daveg@sonic.net
  Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
  In-Reply-To: <15347.1446223903@sss.pgh.pa.us>
  References: <20151030133252.3033.4249@wrigleys.postgresql.org> <20151030134646.GE5726@alvherre.pgsql> <20151030072704.1a4db344@engels> <20151030151711.GF5726@alvherre.pgsql> <13594.1446219627@sss.pgh.pa.us> <20151030154937.GH5726@alvherre.pgsql> <13962.1446220437@sss.pgh.pa.us> <20151030161150.GI5726@alvherre.pgsql> <15347.1446223903@sss.pgh.pa.us>

* 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