"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> IMHO vacuumdb and vacuumlo should disable statement_timeout before vacuuming
> the database.
IMHO this request suggests that you are not setting statement_timeout in
sane places. One reasonable setup is to attach it to userids other than
the one used for vacuuming.
regards, tom lane