git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8c12838) | patch
Refactor some code related to wait events "BufferPin" and "Extension"
Mon, 3 Jul 2023 02:01:02 +0000 (11:01 +0900)
Mon, 3 Jul 2023 02:01:02 +0000 (11:01 +0900)
commit 2aeaf80e578ed48af88d54caf2ffcf7ca62617e8
Refactor some code related to wait events "BufferPin" and "Extension"

The following changes are done:
- Addition of WaitEventBufferPin and WaitEventExtension, that hold a
list of wait events related to each category.
- Addition of two functions that encapsulate the list of wait events for
each category.
- Rename BUFFER_PIN to BUFFERPIN (only this wait event class used an
underscore, requiring a specific rule in the automation script).

These changes make a bit easier the automatic generation of all the code
and documentation related to wait events, as all the wait event
categories are now controlled by consistent structures and functions.

Author: Bertrand Drouvot
Discussion: https://postgr.es/m/c6f35117-4b20-4c78-1df5-d3056010dcf5@gmail.com
Discussion: https://postgr.es/m/77a86b3a-c4a8-5f5d-69b9-d70bbf2e9b98@gmail.com
contrib/dblink/dblink.c diff | blob | blame | history
contrib/pg_prewarm/autoprewarm.c diff | blob | blame | history
contrib/postgres_fdw/connection.c diff | blob | blame | history
src/backend/storage/buffer/bufmgr.c diff | blob | blame | history
src/backend/storage/ipc/standby.c diff | blob | blame | history
src/backend/utils/activity/wait_event.c diff | blob | blame | history
src/include/utils/wait_event.h diff | blob | blame | history
src/test/modules/test_shm_mq/setup.c diff | blob | blame | history
src/test/modules/test_shm_mq/test.c diff | blob | blame | history
src/test/modules/worker_spi/worker_spi.c diff | blob | blame | history
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /