Alvaro Herrera <alvherre@commandprompt.com> writes:
> In the end, it would be better if this function was not called at all
> for user-invoked vacuum, and have autovacuum handle it. However, that
> doesn't work for people who disable autovacuum.
A possible variant on that is to invoke it only in database-wide
vacuums, ie not when you specify a single target table.
regards, tom lane