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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a2a6249) | patch
Add system view pg_wait_events
2023年8月20日 06:35:02 +0000 (15:35 +0900)
2023年8月20日 06:35:02 +0000 (15:35 +0900)
commit 1e68e43d3f0ff1dcf4a5926f9d6336b86bda034d
Add system view pg_wait_events

This new view, wrapped around a SRF, shows some information known about
wait events, as of:
- Name.
- Type (Activity, I/O, Extension, etc.).
- Description.

All the information retrieved comes from wait_event_names.txt, and the
description is the same as the documentation with filters applied to
remove any XML markups. This view is useful when joined with
pg_stat_activity to get the description of a wait event reported.

Custom wait events for extensions are included in the view.

Original idea by Yves Colin.

Author: Bertrand Drouvot
Reviewed-by: Kyotaro Horiguchi, Masahiro Ikeda, Tom Lane, Michael
Paquier
Discussion: https://postgr.es/m/0e2ae164-dc89-03c3-cf7f-de86378053ac@gmail.com
19 files changed:
doc/src/sgml/monitoring.sgml diff | blob | blame | history
doc/src/sgml/system-views.sgml diff | blob | blame | history
src/backend/Makefile diff | blob | blame | history
src/backend/catalog/system_views.sql diff | blob | blame | history
src/backend/utils/activity/.gitignore diff | blob | blame | history
src/backend/utils/activity/Makefile diff | blob | blame | history
src/backend/utils/activity/generate-wait_event_types.pl diff | blob | blame | history
src/backend/utils/activity/meson.build diff | blob | blame | history
src/backend/utils/activity/wait_event.c diff | blob | blame | history
src/backend/utils/activity/wait_event_funcs.c [new file with mode: 0644] blob
src/include/catalog/pg_proc.dat diff | blob | blame | history
src/include/utils/meson.build diff | blob | blame | history
src/include/utils/wait_event.h diff | blob | blame | history
src/test/modules/worker_spi/t/001_worker_spi.pl diff | blob | blame | history
src/test/regress/expected/rules.out diff | blob | blame | history
src/test/regress/expected/sysviews.out diff | blob | blame | history
src/test/regress/sql/sysviews.sql diff | blob | blame | history
src/tools/msvc/Solution.pm diff | blob | blame | history
src/tools/msvc/clean.bat diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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