Re: Introduce WAIT_EVENT_EXTENSION and WAIT_EVENT_BUFFER_PIN
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael@paquier.xyz>, "Drouvot,
Bertrand" <bertranddrouvot.pg@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-05-18T16:28:20Z
Lists: pgsql-hackers
On Wed, May 17, 2023 at 7:38 PM Andres Freund <andres@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
Commits
-
Refactor some code related to wait events "BufferPin" and "Extension"
- 2aeaf80e578e 17.0 landed