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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a2595e0) | patch
Use WaitLatch() instead of pg_usleep() at end-of-vacuum truncation
Fri, 2 Jul 2021 03:58:34 +0000 (12:58 +0900)
Fri, 2 Jul 2021 03:58:34 +0000 (12:58 +0900)
commit 70685385d70f8da73ab189a72f46311091ff09be
Use WaitLatch() instead of pg_usleep() at end-of-vacuum truncation

This has the advantage to make a process more responsive when the
postmaster dies, even if the wait time was rather limited as there was
only a 50ms timeout here. Another advantage of this change is for
monitoring, as we gain a new wait event for the end-of-vacuum
truncation.

Author: Bharath Rupireddy
Reviewed-by: Aleksander Alekseev, Thomas Munro, Michael Paquier
Discussion: https://postgr.es/m/CALj2ACU4AdPCq6NLfcA-ZGwX7pPCK5FgEj-CAU0xCKzkASSy_A@mail.gmail.com
doc/src/sgml/monitoring.sgml diff | blob | blame | history
src/backend/access/heap/vacuumlazy.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
This is the main PostgreSQL git repository.
RSS Atom

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