Disable autovacuum on the planner statistics spec tables

What does this MR do and why?

The real-connection example in the planner statistics spec commits its scratch tables, so autovacuum can record a row count on _test_plain or _test_leaf before the expectations run, and the never-analyzed query would then stop listing them. This disables autovacuum on the two tables that hold rows, as the manual steps in the first MR's description already did.

Follow-up to the non-blocking note in !265314 (comment 4108519262). Related to #632280 (closed).

How to set up and validate locally

  1. bin/rspec spec/lib/gitlab/database/diagnostics/checks/planner_statistics_spec.rb
  2. All examples pass. During the real-connection example, pg_class.reloptions for _test_plain and _test_leaf reads {autovacuum_enabled=false}; the partitioned parent holds no rows and autovacuum never visits it, so it needs no option.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist.

Merge request reports

Loading
Loading