Add support for getting all the pids of a pool.