On Wed, May 17, 2023 at 7:38 PM Andres Freund <and...@anarazel.de> wrote: > On 2023-05-17 09:22:19 -0400, Robert Haas wrote: > > Adding pgstat_get_wait_extension adds runtime cost for no corresponding > > benefit. Having a special case in the code to avoid that seems worthwhile. > > I don't think that should ever be used in a path where performance is > relevant?
I mean, I agree that it would probably be hard to measure any real performance difference. But I'm not sure that's a good reason to add cycles to a path where we don't really need to. -- Robert Haas EDB: http://www.enterprisedb.com