The linter table has been enhanced with a new linter_namespace column which will allow the linter reports to avoid making queries against the page table, greatly reducing the load on the database. For several weeks new linter errors have been writing the namespace ID info into this table, but older linter records have this field set to NULL.
This maintenance script updates the new column with the namespace ID from the page table using batching and waiting on replication to avoid causing performance problems while updating the linter table.
This script has gone through extensive review and full testing on Beta cluster and writes log entries as it executes to allow monitoring.