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 1fdFCM-0005VR-JF for pgsql-general@arkaria.postgresql.org; Wed, 11 Jul 2018 13:30:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdFCL-0001eK-0W for pgsql-general@arkaria.postgresql.org; Wed, 11 Jul 2018 13:30:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdFCK-0001e5-O5 for pgsql-general@lists.postgresql.org; Wed, 11 Jul 2018 13:30:24 +0000 Received: from sonic301-21.consmr.mail.gq1.yahoo.com ([98.137.64.147]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdFCH-0005kb-7l for pgsql-general@postgresql.org; Wed, 11 Jul 2018 13:30:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1531315818; bh=fMOEY+Q58Um+uwNBi4mWKUmIYQb7HfTmkLj4Dor/X6Q=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=f8cS7DNFsgB2DYxXpn4H0zSDwYtFqE1tIiIgAjdlEb82b+TTu5Ia3KbU1bZS3LfhSQECHchA4mshJsTHT6g+i33hllaAXcfnloIzLKqCNjoSkZcvkILfjVxaIBLzdqR5nYYVXmFlISxUB8VztrIOsnwEdINA/0BDjCZgf6H8p92jajhArbW2i2uBtzHEoxJvVWV/3U3+S12WTouNlYkmVoz3MYIIWCy/EAnC6acR8hJkNx1YkdMTgpyTCRnHhXSk0VwjokhFwmI42oZ55pwOnU3gKuTy76B79j7F1ResQee/s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g05WQOY7CCSJ1Cz181bwgV2C0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Wed, 11 Jul 2018 13:30:18 +0000 Date: Wed, 11 Jul 2018 13:30:14 +0000 (UTC) From: Rijo Roy Reply-To: "rjo_roy@yahoo.com" To: "srkrishna@yahoo.com" Cc: "pgsql-general@postgresql.org" Message-ID: <2065966308.2618660.1531315814396@mail.yahoo.com> In-Reply-To: <10E91BD1-F97E-4FB4-AB8D-AE90702CC033@yahoo.com> References: <1734155292.2575738.1531308820197.ref@mail.yahoo.com> <1734155292.2575738.1531308820197@mail.yahoo.com> <1621332282.2589089.1531311193173@mail.yahoo.com> <10E91BD1-F97E-4FB4-AB8D-AE90702CC033@yahoo.com> Subject: Re: Extremely slow autovacuum:vacuum to prevent wraparound MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2618659_44500552.1531315814393" 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: 11651 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_2618659_44500552.1531315814393 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable No, I have=C2=A0 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.=C2=A0I also have a vaccumdb session which is invoked by m= e on these tables which is currently in paused state. So, I want to know wh= ether 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.= =C2=A0 Sent from Yahoo Mail on Android=20 =20 On Wed, 11 Jul 2018 at 6:36 pm, Ravi Krishna wrote: = Are you telling that you have multiple autovac on the same table? =C2=A0I= f yes, that causes lock waits. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=C2=A0= Original=C2=A0Message=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On Jul 11, 2018, at 08:13 , Rijo Roy wrote: Hi Ravi,=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_2618659_44500552.1531315814393 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 whic= h is currently in paused state. So, I want to know whether I can kill the a= utivacuum sessions which is running since 5 days and extremely slow and jus= t run a manual vacuum against these tables instead. 


=
On Wed, 11 Jul 2018 at 6:36 pm, Ravi Krishna
<srkrishna@y= ahoo.com> wrote:
Are you telling that you have multiple autovac on the same table? &nb= sp;If yes, that causes lock waits.

=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ori= ginal Message=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

On Jul 11, 2018, a= t 08:13 , Rijo Roy <rjo_roy@yahoo.com> wrote:

Hi Ravi, 

It was the application teams call to disable it fea= ring the alteration of execution plans and slowness as per their explanatio= n. I have joined 2 days back and I have tried educating them for enabling t= he same but they said after enough testing and evidence collected it will b= e enabled back in future.. 
As of now, I have star= ted the manual vacuum operation on the databases but in one of them I am fa= cing 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 wraparou= nd. 
Could you please confirm whether I can stop t= hese autovacuum jobs so that I can run my manual run of vaccum job. 

Thanks, 
Rijo Roy 


Who disabled auto vacuum and why ?  B= asically 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.co= m> 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 tuple= s 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 t= he 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. 
<= div class=3D"yiv6037723167" id=3D"yiv6037723167yMail_cursorElementTracker_1= 531308808851">
Thanks in advance. 

Regards, 

=
------=_Part_2618659_44500552.1531315814393--