On Fri, Jan 3, 2020 at 10:15 PM Robert Haas <robertmhaas@gmail.com> wrote:
>
> On Sun, Dec 29, 2019 at 4:23 PM Tomas Vondra
> <tomas.vondra@2ndquadrant.com> wrote:
> > IMO there's not much reason for the leader not to participate. For
> > regular queries the leader may be doing useful stuff (essentially
> > running the non-parallel part of the query) but AFAIK for VAUCUM that's
> > not the case and the worker is not doing anything.
>
> I agree, and said the same thing in
> http://postgr.es/m/CA+Tgmob7JLrngeHz6i60_TqdvE1YBcvGYVoEQ6_xvP=vN7DwGg@mail.gmail.com
>
> I really don't know why we have that code.
>
We have removed that code from the main patch. It is in a separate
patch and used mainly for development testing where we want to
debug/test the worker code.
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com