Add missing CHECK_FOR_INTERRUPTS in autovacuum catalog scan loops

Lakshmi N <lakshmin.jhs@gmail.com>

From: Lakshmi N <lakshmin.jhs@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2026-04-10T08:38:53Z
Lists: pgsql-hackers

Attachments

Hi hackers,

I noticed CFI is missing while scanning pg_class for RELKIND_RELATION and
RELKIND_TOASTVALUE. On a database with several thousands of tables, these
scans can take a noticeable amount of time. Attached a patch to address
this.

Regards,
Lakshmi