Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0EdS-0006uf-UD for pgsql-admin@arkaria.postgresql.org; Tue, 28 Jul 2020 01:42:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0EdR-0000Vq-Ty for pgsql-admin@arkaria.postgresql.org; Tue, 28 Jul 2020 01:42:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0EdQ-0000Vd-MD for pgsql-admin@lists.postgresql.org; Tue, 28 Jul 2020 01:42:29 +0000 Received: from mail-eopbgr770058.outbound.protection.outlook.com ([40.107.77.58] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0EdL-0001cI-MO for pgsql-admin@lists.postgresql.org; Tue, 28 Jul 2020 01:42:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F9mcJ2xt0abzDicsZML+X4CqgGtf8nKGx+76Iw92sL1R72QfPzgg0tKDTb4Q2fgCQCSPCCLYyATwDI+BZjso54T/1gtlKAge/704dfJVgZ+j2KLk39pi7g+VcOpX4WFqASttbx6XqQHx7Jzvrveni1WZGQ4JR6NbKZoNqECq9rOM+DV5X4b7cbAMvo+G0LyMRdrnCCNmYRZXP0I8m9skXCF7JTCCUgENsTTfrmWpvAB5cY8oGEoGMXhjBXGhnCgi+GwEvrWuqmPkN1yjjN3G/h69Tbz4tohf9E654Bm7AR57D/L53EJWum8deDDStqI/5E4eqc6nE6TqgJZjxKyNBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3hO2yQyZFtzifWC3umdbMy4iz9YaxX+wgd7UWBS9Rok=; b=Wb2gQNuEb6waTv60zrw6fOZ9Sri0Ro7u2A14RjplJEARtwvlwgz6LSdk2w/xcLljVbnfuL+q6oklfLTcF6WPLEr0Yp9SRNQaBctUkv/pN1/EeSt1aMig7fWUEinx5+AO1oRDu4eLikCETxRqtfRz4zrrLUvsAYsaFcZENytiTlB1mh3/InGuOQ3E9T7fFq8lY8Bg5wZjPhniLFoOQ3mv6hMTPCOZR4rIhemvpkqvc7ThN7I1gjcvaZvd7RBlksW8SI1x3VE55l+od+5chzFuLn1wOMsJKhU0ZoYfs132KRJuJ+Tskpjj5DwMvDDiJUUBGiRpkXITgKp0/VXVpJxtiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tjrj.jus.br; dmarc=pass action=none header.from=tjrj.jus.br; dkim=pass header.d=tjrj.jus.br; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tjrj.jus.br; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3hO2yQyZFtzifWC3umdbMy4iz9YaxX+wgd7UWBS9Rok=; b=GRnEC76WaRjSe8OftzagcXgs1MggQwVU9uSInoeMfqoIjBJeKBFIZyJco0aXCDASk/uL2n+5qNr4NfS5mZcBeOcFKBM7j4aRGTmqTJLjEPuaTsrc5kRinK+rhXCZrLOhTSRApwlXn0vgF3RJO2fYaRM0t6V0XdVq04fzrwnLiQU= Received: from CP2PR80MB0707.lamprd80.prod.outlook.com (2603:10d6:102:b::17) by CP0PR80MB5123.lamprd80.prod.outlook.com (2603:10d6:103:17::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.26; Tue, 28 Jul 2020 01:42:16 +0000 Received: from CP2PR80MB0707.lamprd80.prod.outlook.com ([fe80::38cc:2347:f088:a9ee]) by CP2PR80MB0707.lamprd80.prod.outlook.com ([fe80::38cc:2347:f088:a9ee%12]) with mapi id 15.20.3216.033; Tue, 28 Jul 2020 01:42:16 +0000 From: Sidney Aloisio Ferreira Pryor To: Keith CC: Keith Fiske , "David G. Johnston" , "pgsql-admin@lists.postgresql.org" Subject: RE: How can i be certain autovacuum is causing reuse if table still grows Thread-Topic: How can i be certain autovacuum is causing reuse if table still grows Thread-Index: AQHWYhGepsCqvK/lXUOJcvUYtwojlKkb3nm/gAADXYCAAAQwQIAAB1+AgAAIvqqAAA2hgIAAAKmAgAAERKKAABYYgIAAAxJggAALzACAAA3Fvw== Date: Tue, 28 Jul 2020 01:42:16 +0000 Message-ID: References: , In-Reply-To: Accept-Language: pt-BR, en-US Content-Language: pt-BR X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: keithf4.com; dkim=none (message not signed) header.d=none;keithf4.com; dmarc=none action=none header.from=tjrj.jus.br; x-originating-ip: [45.166.79.42] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7176dded-4bcd-414a-39d4-08d8329775a6 x-ms-traffictypediagnostic: CP0PR80MB5123: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PWvtge3kTuA/7V9nwYsxx3d8/jChBWsI6hspSK9SK2ZJ17nUyAEwyZLpokhSGDcyHJFsghuECti4Pf5X2Bvn+6X44lkk/tf9Gjqj2revQrbrND4oMyTlk1TNiYfJ8hm77fzB+LBWJOMDWgFxIWtfRT/bYqcvv0FguhhiPel3wIRM7b6h9+/YiowDh6/gv9UhzBQtisild9H9n4NUcbhP2lR63pIJuPcdfI88ejamP3KAJ5tNgkNQzXhrnIcb3D/nsDaUzOT4Q62dFMdqCVcjI1b3cj9VTBzg53bi8T412gtkZctbIPxLFM5bKZw7sNZS9q7MRVNuMVuAmhWdEG5wmforK2eUfA3rkXrvfdsdoVQYuzac8dZ2xZVQkkAM9Ket2EpNykIJJ1QwicnEfsON7Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CP2PR80MB0707.lamprd80.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(366004)(39860400002)(136003)(376002)(396003)(346002)(66476007)(8936002)(26005)(66446008)(64756008)(9686003)(186003)(19627405001)(66556008)(66946007)(55016002)(76116006)(8676002)(52536014)(86362001)(478600001)(7696005)(316002)(4326008)(54906003)(966005)(71200400001)(83380400001)(166002)(6916009)(5660300002)(6506007)(33656002)(53546011)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: Wx/LsYs0MXOsrV3nawRF4KN2U1sQdfh/QoBmlnhbc9fpAtyqb4xOuI5bcG5eY0KCFrT4deGbuVLMsOwo7393Zf5KE3VMhLxgSuNqef1fH1Fv1OFTIaBYshARh0TnnqkY8L+0n8WHSxRvJ/Pswkm9F+TTiIaAxiUFBUuc3XWjBFEREc/ZsaaXsNvnASMIWnQOhUM5WfgBEMhDDPchAeJtJOq7pxerEneaA59qPR68wRs1BgJDgsHQq9QiuK0YRsz7m/k+bWgdGWi0wIGMSbDBreF3HgMiVDEbzsHPaTRsBx89QxHNNlwdZG9Z497lkn+gqGMYD6AD7jW2YkpCLf/ebhn+gvSR4EtUfaldUN2yQssV1/059ID3t+UTyGNAsQ9Nnd4ezwC+mFzp53xWunkXWg2OqBUvcTbsUgFNBXffR58QwXYFa1hORTE5/DcvyEMi3FyIe5rzkWGFgs5hHlI0D82tOYSzH0i9LKX1p8xXKJI= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_CP2PR80MB0707537B86CFA8FC42755FCB8C730CP2PR80MB0707lamp_" MIME-Version: 1.0 X-OriginatorOrg: tjrj.jus.br X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CP2PR80MB0707.lamprd80.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7176dded-4bcd-414a-39d4-08d8329775a6 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2020 01:42:16.6014 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ce4e1164-986f-4132-85d1-1e3c17cf7d6e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1tUAji6Q/3PptUFStRiuwGjJ4uMPVZoIgIkjusM/l89TeCZFCSvZ7Gvd6YhhAyN0hzzuZfV4/mC2XVNbP3EW1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CP0PR80MB5123 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_CP2PR80MB0707537B86CFA8FC42755FCB8C730CP2PR80MB0707lamp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Yes, it is true. But i think it would be better to disable it just after manual vacuum so i = can tune cost_delay of autovacuum to make it more agressive/tolerant and no= t last for days anymore in the future. ________________________________ De: Keith Enviado: segunda-feira, 27 de julho de 2020 21:49 Para: Sidney Aloisio Ferreira Pryor Cc: Keith Fiske ; David G. Johnston ; pgsql-admin@lists.postgresql.org Assunto: Re: How can i be certain autovacuum is causing reuse if table stil= l grows I would cancel that alter table to disable autovacuum. It's not going to go= through until you manual vacuum finishes and at that point you don't want = it to be disabled anymore. On Mon, Jul 27, 2020 at 8:18 PM Sidney Aloisio Ferreira Pryor > wrote: Thank you for the explanation Keith. We will really improve our minor release update policy. We have few but important postgres database here. I guess an outage would really be better. Index bloat is shorter than table bloat but it is present too. So far manual vacuum 3 of 8 indexes. An alter table to disable autovacuum and an autovacuum are both waiting for= manual vacuum verbose. flip=3D# SELECT pid, flip-# Age(query_start, Clock_timestamp()), flip-# usename, flip-# query, flip-# state, flip-# wait_event flip-# FROM pg_stat_activity flip-# WHERE query !=3D '' flip-# AND query ilike '%vacuum%' flip-# ORDER BY query_start ASC; pid | age | usename | q= uery | state | wait_event -------+------------------+----------+-------------------------------------= -----------------------------------------+--------+------------ 25849 | -01:59:22.309787 | postgres | vacuum verbose flip_pagina_edicao; = | active | 22317 | -00:55:09.848074 | postgres | ALTER TABLE flip_pagina_edicao SET (= autovacuum_enabled =3D false); | active | relation 27718 | -00:53:00.368776 | postgres | autovacuum: VACUUM ANALYZE public.fl= ip_pagina_edicao (to prevent wraparound) | active | relation I am truly optimist it will solve. So far no user session is locked or waiting. ________________________________ De: Keith Fiske > Enviado: segunda-feira, 27 de julho de 2020 20:55 Para: Sidney Aloisio Ferreira Pryor > Cc: David G. Johnston >; pgsql-admin@lists.postgresql.org > Assunto: Re: How can i be certain autovacuum is causing reuse if table stil= l grows What were the results of pgstattuple? Curious what the live tuple_* and dea= d_tuple* values vs the free space were. Also note that if you just ran it = on the table, that is the results for JUST the table. If there are indexes = as well, you'd have to check those separately and they may be even worse (i= ndex bloat is often worse than table). The pg_bloat_check script I linked, = when run against a single table, will run against the table and all b-tree = indexes (it cannot check gin/gist). Unfortunately, since this is a wraparound vacuum that is starting, disablin= g autovacuum will not work. Wraparound vacuums run even when autovac is dis= abled in order to try and keep you from getting into transaction exhaustion= territory which means you must take the database offline to fix things and= avoid data corruption. As I said autovac will attempt to run again, even i= f you start yours. And both will attempt to get the lock, but only one will= actually succeed in getting it. Check the wait_event_type and wait_event c= olumn in pg_stat_activity to determine which one actually obtained the lock= and you want to make sure yours is the one that did. Can check the documen= tation for the meanings of those columns https://www.postgresql.org/docs/9.= 6/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW In all honesty, though, if this table is as bloated as it seems, you may wa= nt to just try and schedule an outage to run a VACUUM FULL on this table an= d get it fully cleaned up. 2.3TB of empty space in just the table is quite = a lot and each index may be just as bad. Until regular vacuums can efficien= tly run on this table it's only going to get progressively worse and just k= eep taking longer and longer. I would also highly suggest getting on the la= test version of 9.6 before doing so that you're sure all bug fixes are in p= lace. An outage now may be costly, but it will be nowhere near as costly as autov= acuum never being able to run on this table and reaching transaction exhaus= tion. -- Keith Fiske Senior Database Engineer Crunchy Data - http://crunchydata.com On Mon, Jul 27, 2020 at 6:49 PM Sidney Aloisio Ferreira Pryor > wrote: Thank you for the explanation Keith. Pgstattuple runs for 8 hours approximately before printing its result. and pg_freespace runs for "only" 16 minutes so we presumed really that pgst= attuple scans the relation and brings more accurate information. The strange fact is that pg_freespace result is changing from day to day, e= ven without vacuum or analyze finishing. At day one we start monitoring it was saying it has 108GB and kept changing= each day. And the worse fact is the different values for free space: pgstattupple wit= h 2.3TB free VS pg_freespace with 96GB. But i just killed autovacuum and started a manual vacuum verbose. and 20 seconds later a autovacuum started. it seems they are both running together. Both sessions gets row exclusive locks. I think it is better disabling autovacuum, do you agree? ________________________________ De: Keith Fiske > Enviado: segunda-feira, 27 de julho de 2020 19:21 Para: Sidney Aloisio Ferreira Pryor > Cc: David G. Johnston >; pgsql-admin@lists.postgresql.org > Assunto: Re: How can i be certain autovacuum is causing reuse if table stil= l grows On Mon, Jul 27, 2020 at 6:19 PM Keith Fiske > wrote: As the documentation for pg_freespacemap says, it's values are not exact an= d they may not be up to date because you are viewing the statistics that we= re gathered during the last analyze, not the actual freespace map Sorry, just wanted to clarify this. You are looking at the actual freespace= map. It's that the values actually stored in it are not exact and based of= f of statistics gathering https://www.postgresql.org/docs/9.6/pgfreespacemap.html When you run pgstattuple, it is actually scanning the target object. Also n= ote that scanning a table does not also scan its indexes, those must be don= e individually. So the free space reported by pgstattuple should be the act= ual free space, given as both byte size and % of the whole object. pg_freespacemap is used by the planner and several other internal parts of = PG, so checking it must be quick. pgstattuple can take a while to run on la= rger objects, but it will give you 100% accurate results as of the time it = ran. This is why I prefer it when checking for bloat since many of the quer= ies you see out there also try and base their results on stats. While the q= uery runs quick, I've often seen them be wildly wrong. Also, I would not recommend partitioning simply to improve vacuuming. Espec= ially if extensive tuning hasn't been tried first. Most times you can get p= er-table tuning working well enough to get autovacuum running properly. Esp= ecially on 9.6 and even more-so on PG11, where autovacuum has itself been i= mproved. --_000_CP2PR80MB0707537B86CFA8FC42755FCB8C730CP2PR80MB0707lamp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Yes, it is true.
But i think it would be better to disable it just after manual vacuum so i = can tune cost_delay of autovacuum to make it more agressive/tolerant and no= t last for days anymore in the future.


De: Keith <keith@keithf4= .com>
Enviado: segunda-feira, 27 de julho de 2020 21:49
Para: Sidney Aloisio Ferreira Pryor <sidney@tjrj.jus.br>
Cc: Keith Fiske <keith.fiske@crunchydata.com>; David G. Johnst= on <david.g.johnston@gmail.com>; pgsql-admin@lists.postgresql.org <= ;pgsql-admin@lists.postgresql.org>
Assunto: Re: How can i be certain autovacuum is causing reuse if tab= le still grows
 
I would cancel that alter table to disable autovacuum. It'= s not going to go through until you manual vacuum finishes and at that poin= t you don't want it to be disabled anymore.

On Mon, Jul 27, 2020 at 8:18 PM Sid= ney Aloisio Ferreira Pryor <sidney= @tjrj.jus.br> wrote:
Thank you for the explanation Keith.
We will really improve our minor release update policy. 
We have few but important postgres database here.

I guess an outage would really be better.
Index bloat is shorter than table bloat but it is present too.

So far manual vacuum 3 of 8 indexes.
An alter table to disable autovacuum and an auto= vacuum are both waiting for manual vacuum verbose.

flip=3D# SELECT   pid,
flip-#          Age(query_start, Clock_timest= amp()),
flip-#          usename,
flip-#          query,
flip-#          state,
flip-#          wait_event
flip-# FROM     pg_stat_activity
flip-# WHERE    query !=3D '<IDLE>'
flip-# AND      query ilike '%vacuum%'
flip-# ORDER BY query_start ASC;
  pid  |       age        = ;| usename  |                 =                    query =                      = ;               | state  | wait_eve= nt
-------+------------------+----------+--------------------------------= ----------------------------------------------+--------+------------
 25849 | -01:59:22.309787 | postgres | vacuum verbose flip_pagina= _edicao;                   &nb= sp;                     &= nbsp; | active |
 22317 | -00:55:09.848074 | postgres | ALTER TABLE flip_pagina_ed= icao SET (autovacuum_enabled =3D false);          =   | active | relation
 27718 | -00:53:00.368776 | postgres | autovacuum: VACUUM ANALYZE= public.flip_pagina_edicao (to prevent wraparound) | active | relation

I am truly optimist it will solve.
So far no user session is locked or waiting.

 


De:= Keith Fiske <keith.fiske@crunchydata.com>
Enviado: segunda-feira, 27 de julho de 2020 20:55
Para: Sidney Aloisio Ferreira Pryor <sidney@tjrj.jus.br>
Cc: David G. Johnston <david.g.johnston@gmail.com>; pgsql= -admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Assunto: Re: How can i be certain autovacuum is causing reuse if tab= le still grows
 
What were the results of pgstattuple? Curious what the live tuple_* an= d dead_tuple*  values vs the free space were. Also note that if you ju= st ran it on the table, that is the results for JUST the table. If there ar= e indexes as well, you'd have to check those separately and they may be even worse (index bloat is often worse th= an table). The pg_bloat_check script I linked, when run against a single ta= ble, will run against the table and all b-tree indexes (it cannot check gin= /gist).

Unfortunately, since this is a wraparound vacuum that is starting, dis= abling autovacuum will not work. Wraparound vacuums run even when autovac i= s disabled in order to try and keep you from getting into transaction exhau= stion territory which means you must take the database offline to fix things and avoid data corruption. As= I said autovac will attempt to run again, even if you start yours. And bot= h will attempt to get the lock, but only one will actually succeed in getti= ng it. Check the wait_event_type and wait_event column in pg_stat_activity to determine which one actually = obtained the lock and you want to make sure yours is the one that did. Can = check the documentation for the meanings of those columns https://www.postgresql.org/docs/9.6/monitoring-stats.html#PG-STAT-ACTIVITY-= VIEW

In all honesty, though, if this table is as bloated as it seems, you m= ay want to just try and schedule an outage to run a VACUUM FULL on this tab= le and get it fully cleaned up. 2.3TB of empty space in just the table is q= uite a lot and each index may be just as bad. Until regular vacuums can efficiently run on this table it's = only going to get progressively worse and just keep taking longer and longe= r. I would also highly suggest getting on the latest version of 9.6 before = doing so that you're sure all bug fixes are in place.

An outage now may be costly, but it will be nowhere near as costly as = autovacuum never being able to run on this table and reaching transaction e= xhaustion.

--
Keith Fiske
Senior Database Engineer
Crunchy Data - http://crunchydata.com


On Mon, Jul 27, 2020 at 6:49 PM Sidney Aloisio Ferreira Pr= yor <sidney@tjrj= .jus.br> wrote:
Thank you for the explanation Keith.

Pgstattuple runs for 8 hours approximately before printing its result.
and pg_freespace runs for "only" 16 minutes so we presumed really= that pgstattuple scans the relation and brings more accurate information.<= /div>

The strange fact is that pg_freespace result is changing from day to day, e= ven without vacuum or analyze finishing.
At day one we start monitoring it was saying it has 108GB and kept changing= each day.
And the worse fact is the different values for free space: pgstattupple wit= h 2.3TB free VS pg_freespace with 96GB.

But i just killed autovacuum and started a manual vac= uum verbose.
and 20 seconds later a autovacuum started.
it seems they are both running together.

Both sessions gets row exclusive locks.
I think it is better disabling autovacuum, do you agree?



De: Keith Fiske <keith.fiske@crunchydata.com>
Enviado: segunda-feira, 27 de julho de 2020 19:21
Para: Sidney Aloisio Ferreira Pryor <sidney@tjrj.jus.br>
Cc: David G. Johnston <david.g.johnston@gmail.com>; pgsql= -admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Assunto: Re: How can i be certain autovacuum is causing reuse if tab= le still grows
 


On Mon, Jul 27, 2020 at 6:19 PM Keith Fiske <keith.fiske@crunchyd= ata.com> wrote:
As the documentation for pg_freespacemap says, it's values are not exa= ct and they may not be up to date because you are viewing the statistics th= at were gathered during the last analyze, not the actual freespace map
 

Sorry, just wanted to clarify this. You are looking at the actual free= space map. It's that the values actually stored in it are not exact and bas= ed off of statistics gathering

 

https://www.postgresql.org/docs/9.6/pgfreespacemap.html<= /div>

When you run pgstattuple, it is actually scanning the target object. A= lso note that scanning a table does not also scan its indexes, those must b= e done individually. So the free space reported by pgstattuple should be th= e actual free space, given as both byte size and % of the whole object. 

pg_freespacemap is used by the planner and several other internal part= s of PG, so checking it must be quick. pgstattuple can take a while to run = on larger objects, but it will give you 100% accurate results as of the tim= e it ran. This is why I prefer it when checking for bloat since many of the queries you see out there also t= ry and base their results on stats. While the query runs quick, I've often = seen them be wildly wrong.

Also, I would not recommend partitioning simply to improve vacuuming. = Especially if extensive tuning hasn't been tried first. Most times you can = get per-table tuning working well enough to get autovacuum running properly= . Especially on 9.6 and even more-so on PG11, where autovacuum has itself been improved.


--_000_CP2PR80MB0707537B86CFA8FC42755FCB8C730CP2PR80MB0707lamp_--