Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdE7Z-0001Wv-K1 for pgsql-general@arkaria.postgresql.org; Wed, 11 Jul 2018 12:21:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdE7X-0005fU-68 for pgsql-general@arkaria.postgresql.org; Wed, 11 Jul 2018 12:21:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdE7W-0005fN-Qg for pgsql-general@lists.postgresql.org; Wed, 11 Jul 2018 12:21:22 +0000 Received: from sonic317-49.consmr.mail.gq1.yahoo.com ([98.137.66.175]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdE7U-0001UE-0L for pgsql-general@postgresql.org; Wed, 11 Jul 2018 12:21:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1531311675; bh=OYt9wI4YRXbScWr8boquTSN/SHxgVYwdve6vTaZr42M=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=g9ru8ohv6whM4vCCMbMywCHkwB/rIe01jIjqJd2MdlXpb8iMs1/H32/dsRWLcN0LcN7sUxjfJYqkHwZnj8AqGOhrPNMSOhuEsPoGacblS7tEK4N7ThQGWtudhdKuflwZdfPd90kJSBdb6GocThfJps9uRG6Q/uQEzeIZdkgPfJO5UV49a5SMBf7jwB8PHTb5S4iitd5oHdFdn4b7doxYQn3hNhumXCQzH5/mBPwZMv/UOriPHOB1rmzuqDhHjzfBicpKxaVxnOdlHCAkFlN0ixrEuXf5ESq7DtZu8QbG3qevObqtF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Jset33HRM2YQWHgX50aQuLy pzWxepA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Wed, 11 Jul 2018 12:21:15 +0000 Date: Wed, 11 Jul 2018 12:17:13 +0000 (UTC) From: Rijo Roy Reply-To: "rjo_roy@yahoo.com" To: "srkrishna@yahoo.com" Cc: "pgsql-general@postgresql.org" Message-ID: <501403773.2588946.1531311433665@mail.yahoo.com> In-Reply-To: <1621332282.2589089.1531311193173@mail.yahoo.com> References: <1734155292.2575738.1531308820197.ref@mail.yahoo.com> <1734155292.2575738.1531308820197@mail.yahoo.com> <1621332282.2589089.1531311193173@mail.yahoo.com> Subject: Re: Extremely slow autovacuum:vacuum to prevent wraparound MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2588945_1465939133.1531311433663" X-Mailer: WebService/1.1.12062 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/5.28.3; Android/8.0.0; HUAWEIDUK-L09; HWDUK; HUAWEI; DUK-L09; 4.02; 1768x1080;) Content-Length: 7465 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_2588945_1465939133.1531311433663 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable +pgsql-general Sent from Yahoo Mail on Android=20 =20 On Wed, 11 Jul 2018 at 5:43 pm, Rijo Roy wrote: Hi R= avi,=C2=A0 It was the application teams call to disable it fearing the alteration of e= xecution 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 af= ter enough testing and evidence collected it will be enabled back in future= ..=C2=A0As of now, I have started the manual vacuum operation on the databa= ses but in one of them I am facing this issue that my vacuum jobs for 3 tab= les are paused as there are 3 autovacuum jobs running since 5 days on the s= ame tables to prevent wraparound.=C2=A0Could you please confirm whether I c= an stop these autovacuum jobs so that I can run my manual run of vaccum job= .=C2=A0 Thanks,=C2=A0Rijo Roy=C2=A0 Sent from Yahoo Mail on Android=20 =20 On Wed, 11 Jul 2018 at 5:37 pm, Ravi Krishna wrote: = Who disabled auto vacuum and why ? =C2=A0Basically you are paying the pri= ce for it now=C2=A0 Sent from my iPad On Jul 11, 2018, at 7:33 AM, Rijo Roy wrote: Hi Experts,=C2=A0 I am running a PG10.4 in a RHEL 6.9. The tables stored in my database are m= ainly used for reads and very less writes happen. I have recently joined th= is environment and as soon as I logged into the postgresql servers, checked= for dead tuples and relfrozenids.. And almost all have reached the autovac= uum_freeze_max_age of 2billion and autovacuum was disabled.. Last vacuum wa= s run 3 months back.=C2=A0Today I got permission to vacuum the tables but f= or 3 tables, Postgresql has already started the vacuum freeze using the aut= ovacuum 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 ma= nual vacuum job with parallel jobs.=C2=A0 Thanks in advance.=C2=A0 Regards,=C2=A0Rijo Roy=C2=A0 Sent from Yahoo Mail on Android =20 =20 ------=_Part_2588945_1465939133.1531311433663 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable +pgsql-general


On Wed, 11 Jul 2= 018 at 5:43 pm, Rijo Roy
<rjo_roy@yahoo.com> wrote:
<= /div>
Hi Ravi, 

It was the application teams call to disable it fearing the alteration o= f execution plans and slowness as per their explanation. I have joined 2 da= ys 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 fut= ure.. 
As of= now, I have started the manual vacuum operation on the databases but in on= e of them I am facing this issue that my vacuum jobs for 3 tables are pause= d 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 


On Wed, 11 Jul 20= 18 at 5:37 pm, Ravi Krishna
<srkrishna@yahoo.com> wrote:
Who disabled aut= o 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 P= G10.4 in a RHEL 6.9. The tables stored in my database are mainly used for r= eads and very less writes happen. I have recently joined this environment a= nd as soon as I logged into the postgresql servers, checked for dead tuples= and relfrozenids.. And almost all have reached the autovacuum_freeze_max_a= ge of 2billion and autovacuum was disabled.. Last vacuum was run 3 months b= ack. 
Today I got permission to vacuum the tables but for 3 tables, Postgr= esql has already started the vacuum freeze using the autovacuum daemon runn= ing 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. 

Regar= ds, 
------=_Part_2588945_1465939133.1531311433663--