"Matthew T. O'Connor" <matthew@zeut.net> writes:
> Is there any chance of a race condition here? That is, can the launcher
> process start a new autovacuum process against that database that your
> code will miss since it was started after you began your search?
No; we're holding a lock against incoming processes in that database.
regards, tom lane