pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rijo Roy <rjo_roy@yahoo.com>
To: srkrishna@yahoo.com <srkrishna@yahoo.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Extremely slow autovacuum:vacuum to prevent wraparound
Date: Wed, 11 Jul 2018 13:30:14 +0000 (UTC)
Message-ID: <2065966308.2618660.1531315814396@mail.yahoo.com> (raw)
In-Reply-To: <10E91BD1-F97E-4FB4-AB8D-AE90702CC033@yahoo.com>
References: <1734155292.2575738.1531308820197.ref@mail.yahoo.com>
	<1734155292.2575738.1531308820197@mail.yahoo.com>
	<AB65F73C-ACFB-43DA-896F-C6F30AB7E27A@yahoo.com>
	<1621332282.2589089.1531311193173@mail.yahoo.com>
	<10E91BD1-F97E-4FB4-AB8D-AE90702CC033@yahoo.com>

No, I have  3 sessions of autovacuum against 3 tables which is doing a Vacuum to prevent wraparound as it hit the limit of autovacuum_freeze_max_age of 2 billion. I also have a vaccumdb session which is invoked by me on these tables which is currently in paused state. So, I want to know whether I can kill the autivacuum sessions which is running since 5 days and extremely slow and just run a manual vacuum against these tables instead. 

Sent from Yahoo Mail on Android 
 
  On Wed, 11 Jul 2018 at 6:36 pm, Ravi Krishna<srkrishna@yahoo.com> wrote:   Are you telling that you have multiple autovac on the same table?  If yes, that causes lock waits.
======================= Original Message===============

On Jul 11, 2018, at 08:13 , Rijo Roy <rjo_roy@yahoo.com> wrote:
Hi Ravi, 
It was the application teams call to disable it fearing the alteration of execution plans and slowness as per their explanation. I have joined 2 days back and I have tried educating them for enabling the same but they said after enough testing and evidence collected it will be enabled back in future.. As of now, I have started the manual vacuum operation on the databases but in one of them I am facing this issue that my vacuum jobs for 3 tables are paused as there are 3 autovacuum jobs running since 5 days on the same tables to prevent wraparound. Could you please confirm whether I can stop these autovacuum jobs so that I can run my manual run of vaccum job. 
Thanks, Rijo Roy 

Sent from Yahoo Mail on Android 
 
  On Wed, 11 Jul 2018 at 5:37 pm, Ravi Krishna<srkrishna@yahoo.com> wrote:   Who disabled auto vacuum and why ?  Basically you are paying the price for it now 

Sent from my iPad
On Jul 11, 2018, at 7:33 AM, Rijo Roy <rjo_roy@yahoo.com> wrote:


Hi Experts, 
I am running a PG10.4 in a RHEL 6.9. The tables stored in my database are mainly used for reads and very less writes happen. I have recently joined this environment and as soon as I logged into the postgresql servers, checked for dead tuples and relfrozenids.. And almost all have reached the autovacuum_freeze_max_age of 2billion and autovacuum was disabled.. Last vacuum was run 3 months back. Today I got permission to vacuum the tables but for 3 tables, Postgresql has already started the vacuum freeze using the autovacuum daemon running to prevent wraparound and these tables have TB'S of data.Experts, please confirm whether I can kill these sessions and run a manual vacuum job with parallel jobs. 
Thanks in advance. 
Regards, Rijo Roy 

Sent from Yahoo Mail on Android
  


  

view thread (9+ messages)  latest in thread

Message-ID: <2065966308.2618660.1531315814396@mail.yahoo.com>
Permalink:  ../2065966308.2618660.1531315814396@mail.yahoo.com/
Also on:    postgresql.org/message-id/2065966308.2618660.1531315814396@mail.yahoo.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: rjo_roy@yahoo.com, srkrishna@yahoo.com
  Subject: Re: Extremely slow autovacuum:vacuum to prevent wraparound
  In-Reply-To: <2065966308.2618660.1531315814396@mail.yahoo.com>
  References: <1734155292.2575738.1531308820197.ref@mail.yahoo.com> <1734155292.2575738.1531308820197@mail.yahoo.com> <AB65F73C-ACFB-43DA-896F-C6F30AB7E27A@yahoo.com> <1621332282.2589089.1531311193173@mail.yahoo.com> <10E91BD1-F97E-4FB4-AB8D-AE90702CC033@yahoo.com> <2065966308.2618660.1531315814396@mail.yahoo.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