| From: | Tomas Vondra <tomas(at)vondra(dot)me> |
|---|---|
| To: | Lukas Fittl <lukas(at)fittl(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>, Sami Imseih <samimseih(at)gmail(dot)com> |
| Subject: | Re: Unify parallel worker handling for index builds and instrumentation |
| Date: | 2026-11-26 12:13:32 |
| Message-ID: | 269e6637-6923-4ee6-9833-8774a9ebe8b3@vondra.me |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 11/26/26 04:12, Lukas Fittl wrote:
> On Wed, Nov 25, 2026 at 3:38 PM Tomas Vondra <tomas(at)vondra(dot)me> wrote:
>>
>> On 11/26/26 00:21, Lukas Fittl wrote:
>>> On Wed, Nov 25, 2026 at 2:31 PM Tomas Vondra <tomas(at)vondra(dot)me> wrote:
>>>>
>>>> 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.
>>>
>>
>> OK. So by "following 6fd5071909a's reasoning" you mean not backpatching
>> at all, or backpatching to 18 (where 6fd5071909a landed)?
>
> Sorry, I could have been more clear :)
>
> Either is fine, but my personal choice would be not to backpatch and
> only apply it on master. I think this is a very minor issue and I had
> not initially thought of it as being backpatch worthy, despite the
> code change being minor too.
>
> I mainly factored it out in this series since it is a behavior change
> that the refactoring would otherwise introduce, and so it seemed
> better to discuss/commit independently.
>
OK, no backpatch then.
regards
--
Tomas Vondra
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Xuneng Zhou | 2026-11-26 12:22:23 | Re: test: avoid redundant standby catchup in 049_wait_for_lsn |
| Previous Message | Jelte Fennema-Nio | 2026-11-26 11:55:40 | Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore |