pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: is there any adverse effect on DB if I set autovacuum scale factor to zero?
Date: Mon, 13 Aug 2018 14:35:06 +0200
Message-ID: <64b01682-49bd-8577-45de-0114fd6af372@2ndquadrant.com> (raw)
In-Reply-To: <CAEHH7R66M1tqPMveLwq1njcE0A2zvBVUjnUARXCMhF-rQBfuKQ@mail.gmail.com>
References: <CAEHH7R66M1tqPMveLwq1njcE0A2zvBVUjnUARXCMhF-rQBfuKQ@mail.gmail.com>



On 08/13/2018 11:07 AM, Raghavendra Rao J S V wrote:
> Hi All,
> 
> We are using postgres *9.2*  version on *Centos *operating system.  We 
> have around *1300+* tables.We have following auto vacuum settings are 
> enables. Still few of the tables(84 tables) which are always busy are 
> not vacuumed.Dead tuples in those tables are more than 5000.  Due to 
> that tables are bloating and observed few areas has performance 
> degradation.
> 

You don't say how large the tables are, so it's impossible to say 
whether 5000 dead tuples is excessive or not. IMHO it's a negligible 
amount and should not lead to excessive bloat or issues.

A certain amount of wasted is expected - it's a trade-off between 
immediate and delayed cleanup. If you delay the cleanup a bit, it's 
going to be more efficient overall.

It's also unclear why the tables are not vacuumed - it may easily be due 
to all the autovacuum workers being constantly busy, unable to cleanup 
all tables in a timely manner. In that case lowering the threshold is 
not going to help, on the contrary.

regards

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




view thread (6+ messages)  latest in thread

Message-ID: <64b01682-49bd-8577-45de-0114fd6af372@2ndquadrant.com>
Permalink:  ../64b01682-49bd-8577-45de-0114fd6af372@2ndquadrant.com/
Also on:    postgresql.org/message-id/64b01682-49bd-8577-45de-0114fd6af372@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-general@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, raghavendrajsv@gmail.com
  Subject: Re: is there any adverse effect on DB if I set autovacuum scale factor to zero?
  In-Reply-To: <64b01682-49bd-8577-45de-0114fd6af372@2ndquadrant.com>
  References: <CAEHH7R66M1tqPMveLwq1njcE0A2zvBVUjnUARXCMhF-rQBfuKQ@mail.gmail.com> <64b01682-49bd-8577-45de-0114fd6af372@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