On Thu, Aug 1, 2019 at 8:36 PM Andres Freund <and...@anarazel.de> wrote: > > On 2019-08-01 14:20:46 -0400, Robert Haas wrote: > > However, I think that the fact that this patch adds 15 new calls to > > pg_atomic_write_u64(&MyProc->queryId, ...) is probably not a good > > sign. It seems like we ought to be able to centralize it better than > > that. > > +1
Unfortunately I didn't find a better way to do that. Since you can have nested execution, I don't see how to avoid adding extra code in every parts of query execution.