On Wed, Nov 25, 2026 at 2:31 PM Tomas Vondra <[email protected]> wrote:
>
> On 11/25/26 11:38, Tomas Vondra wrote:
> > Hi,
> >
> > I've pushed and backpatched the ii_BrokenHotChain fixes in BRIN and GIN
> > parallel builds. I'll get the query ID fix committed too, it seems like
> > a pretty obvious omission. Thanks for the fixes.
> >
> > Also, I see you're working on unifying the infrastructure for parallel
> > index builds a little bit. I appreciate that. I know Andres complained
> > about this some timeago, so I'm glad someone is improving it.
> >
>
> The query ID fix seems fine to me.

Great!

>
> I see 6fd5071909a did not backpatch the fixes for BRIN/btree, out of
> caution, so it's in releases since 18. The change does not seem
> particularly risky to me, and it seems it might be annoying to have the
> ID for different subsets of cases. So I'm considering backpatch to 18,
> to align it with 6fd5071909a. Does that make sense to you?

Yeah, that makes sense. I think the risk here is very minimal, but
this is also an edge case that I don't think anyone actually runs into
in practice, so seems sensible to follow 6fd5071909a's reasoning.

The main place the worker's query ID is relevant for in-core use cases
is in pg_stat_activity (since pg_stat_statements doesn't report in
parallel workers), and in pg_stat_activity we also have leader_pid
which is a much more useful way to tie workers to the leader - so I
don't see why someone would particularly care about the worker query
ID. Its really more about closing a gap/inconsistency.

Thanks,
Lukas

-- 
Lukas Fittl


Reply via email to