On 11/20/23 05:22, Ron Johnson wrote:
On Sun, Nov 19, 2023 at 5:24 PM Abdullah Ergin <abdullaherginwork@xxxxxxxxx> wrote:
During this period, I believe the unchecked increase in table size was due to the auto vacuum parameter being turned off. What should I do to prevent this from affecting the 12th month and beyond?Make sure not to comment out "autovacuum = on"?
Create a cron job that regularly runs psql -Xtc "SHOW AUTOVACUUM", and sends an email if it's set to off?
And be sure to check no table has unexpectedly individual autovacuum turned off :
select
pg_class.oid::regclass,relkind, opts.* from pg_class JOIN
LATERAL pg_options_to_table(reloptions) opts ON (true) where
relkind not in ('i','v','S') AND option_name ~*
'.*autovacuum_enabled' AND option_value='false'