1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-19 17:02:53 +03:00

Rename BUFFERPIN wait event class to BUFFER

In an upcoming patch more wait events will be added to the wait event
class (for buffer locking), making the current name too
specific. Alternatively we could introduce a dedicated wait event class for
those, but it seems somewhat confusing to have a BUFFERPIN and a BUFFER wait
event class.

Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff
This commit is contained in:
Andres Freund
2025-12-03 18:38:20 -05:00
parent 7902a47c20
commit 6c5c393b74
9 changed files with 18 additions and 20 deletions

View File

@@ -194,7 +194,7 @@ $node_primary->poll_query_until(
qq[
SELECT count(*) >= 1 FROM pg_stat_activity
WHERE pid = $vacuum_pid
AND wait_event = 'BufferPin';
AND wait_event = 'BufferCleanup';
],
't');

View File

@@ -182,7 +182,7 @@ select type, count(*) > 0 as ok FROM pg_wait_events
type | ok
-----------+----
Activity | t
BufferPin | t
Buffer | t
Client | t
Extension | t
IO | t