On 22.05.23 09:11, Hans Buschmann wrote:
> But I wonder, why this test is necessary at every autovacuum call at all?
>
> Woudn't it be sufficient to test it at server start time only once?
The main server process (postmaster) cannot access the database
contents. So we can only do it when we start a session process.