Re: Autovacuum Woes

From: tushar bangar <tusharbangar37(at)gmail(dot)com>
To: Kevin Grittner <kgrittn(at)gmail(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>, Binand Sethumadhavan <binand(at)gmx(dot)net>
Subject: Re: Autovacuum Woes
Date: 2016-08-09 15:44:37
Message-ID: CAF-6U8va25R=5i6AfZtpZrJQu4r9kWfXT_d9Ek6T=iKbG+MBCg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Agreed with kevin.
Also i would suggest to have a look on your pgcatalog table Of your
database as they may be having bloat if temp tables are getting used too
much which may cause slowness of sql performance as well.

Thanks

On 9 Aug 2016 7:43 p.m., "Kevin Grittner" <kgrittn(at)gmail(dot)com> wrote:

> On Tue, Aug 9, 2016 at 1:02 AM, Binand Sethumadhavan <binand(at)gmx(dot)net>
> wrote:
>
> > Several months back, we started noticing slow inserts to these tables
> > (and high load average on the DB server), and eventually traced the
> > problem to the autovacuum process. As a workaround, we started
> > disabling autovacuum during our peak load times. We run from cron:
> > ALTER TABLE table_name SET (autovacuum_enabled = FALSE) to disable and
> > once our concurrent player count starts going down, set
> > autovacuum_enabled to TRUE to enable it.
>
> I have found it safer and more effective to leave autovacuum
> running at all times and add VACUUM ANALYZE commands during the off
> peak hours. This will prevent autovacuum from kicking in during
> peak load periods unless there is, for example, a large number of
> updates to a small table -- in which case the autovacuum run will
> normally be pretty quick and will prevent a slowdown. Of course,
> you may need to run autovacuum a bit, too; but there aren't enough
> clues here to suggest anything specific.
>
> --
> Kevin Grittner
> EDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message ALT SHN 2016-08-09 20:05:16 GUI client
Previous Message Kevin Grittner 2016-08-09 14:13:05 Re: Autovacuum Woes