разжуйте, я не против постыдиться
О-хо-хо. Итак:
1. "Два":
> PostgreSQL has the ability to report the progress of certain commands during command execution.
И ещё раз:
> Whenever VACUUM is running, the pg_stat_progress_vacuum view will contain one row for each backend (including autovacuum worker processes) that is currently vacuuming.
Не до или после, а только во время исполнения, обратите внимание.
2. И ещё "два":
> To start a single-user mode server, use a command like <skip>
> When invoked in single-user mode from the shell, the user can enter queries and the results will be printed to the screen, but in a form that is more useful for developers than end users. In the single-user mode, the session user will be set to the user with ID 1, and implicit superuser powers are granted to this user.
> Single-user mode also does not do any background processing, such as automatic checkpoints or replication.
Т.е. в single-user mode есть одна и только одна сессия, и это сам сервер, и с пользователем взаимодействует именно он.
Если сложить "два" и "два", получится четыре, что так как сессия только одна, и она выполняет все команды, в т.ч. и VACUUM, то посмотреть pg_stat_progress_vacuum во время его выполнения просто неоткуда (нет и не может быть другой сессии, откуда можно было бы выполнить "SELECT ... FROM pg_stat_progress_vacuum").
> разжуйте, я не против постыдиться
Ну как оно, стыдно теперь? И ведь я Вас за язык не тянул. ;(