Re: remove autoanalyze corner case

Sami Imseih <samimseih@gmail.com>

From: Sami Imseih <samimseih@gmail.com>
To: Shinya Kato <shinya11.kato@gmail.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, Robert Treat <rob@xzilla.net>, satyanarlapuram@gmail.com, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-04-05T22:28:06Z
Lists: pgsql-hackers
> > Well, autoanalyze only runs in this case if autovacuum is disabled via the
> > table's autovacuum_enabled reloption and _not_ disabled via the autovacuum
> > or track_counts GUCs.  I think this is pretty clearly unintentional, as I
> > can find no mention in the code, archives, or docs.  And unless I'm missing
> > something, it's completely unnecessary.  So IMHO we should just remove it.
>
> +1. I think it might be better to mention this in the documentation to
> make the behavior explicit. What do you think about stating that an
> anti-wraparound autovacuum does not perform an ANALYZE, like in the
> attached patch?

+1 to the additional documentation.

a small nit: We can just say "skipped" and not "still skipped".

--
Sami



Commits

  1. Remove autoanalyze corner case.