postgresql/contrib/pg_prewarm
Michael Paquier 2aeaf80e57 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
2023-07-03 11:01:02 +09:00
..
t Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
.gitignore Add a regression test for contrib/pg_prewarm. 2022-08-01 17:59:44 -04:00
Makefile Add a regression test for contrib/pg_prewarm. 2022-08-01 17:59:44 -04:00
autoprewarm.c Refactor some code related to wait events "BufferPin" and "Extension" 2023-07-03 11:01:02 +09:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_prewarm--1.0--1.1.sql Update pg_prewarm extension for parallel query. 2016-06-09 17:18:18 -04:00
pg_prewarm--1.1--1.2.sql pg_prewarm: Add automatic prewarm feature. 2017-08-21 14:17:39 -04:00
pg_prewarm--1.1.sql Update pg_prewarm extension for parallel query. 2016-06-09 17:18:18 -04:00
pg_prewarm.c Introduce PG_IO_ALIGN_SIZE and align all I/O buffers. 2023-04-08 16:34:50 +12:00
pg_prewarm.control pg_prewarm: Add automatic prewarm feature. 2017-08-21 14:17:39 -04:00