Re: Add missing CHECK_FOR_INTERRUPTS in autovacuum catalog scan loops
Sami Imseih <samimseih@gmail.com>
From: Sami Imseih <samimseih@gmail.com>
To: Dapeng Wang <wangdp20191008@gmail.com>
Cc: Lakshmi N <lakshmin.jhs@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2026-04-11T20:10:42Z
Lists: pgsql-hackers
Hi, It was discussed [1] here if C_F_I is needed in these do_autovacuum/autovacuum_scores code paths, and it was decided not to add them. Also, at least on my tests with 100k evern with 1 million tables, I did not see a reason to do so. These are catalog scans that should happen quick enough, even in extreme cases, to not make this worthwhile. Others may have another opinion. -- Sami [1] [https://www.postgresql.org/message-id/acwTxpz3Toxt0ty8%40nathan]