pgsql: Use condition variables to wait for checkpoints.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема pgsql: Use condition variables to wait for checkpoints.
Дата
Msg-id E1h4BxT-0007ae-UP@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Use condition variables to wait for checkpoints.  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-committers
Use condition variables to wait for checkpoints.

Previously we used a polling/sleeping loop to wait for checkpoints
to begin and end, which leads to up to a couple hundred milliseconds
of needless thumb-twiddling.  Use condition variables instead.

Author: Thomas Munro
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/CA%2BhUKGLY7sDe%2Bbg1K%3DbnEzOofGoo4bJHYh9%2BcDCXJepb6DQmLw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c6c9474aafa4de357ae424cd18b69e8bf7a4babe

Modified Files
--------------
doc/src/sgml/monitoring.sgml          | 10 +++++++++-
src/backend/postmaster/checkpointer.c | 21 +++++++++++++++++----
src/backend/postmaster/pgstat.c       |  6 ++++++
src/include/pgstat.h                  |  2 ++
4 files changed, 34 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Revert setting client_min_messages to 'debug1' in new tests.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Rethink how to test the hyperbolic functions.