pgsql: postmaster: Update pmState via a wrapper function

Started by Andres Freundover 1 year ago1 messagescomitters
Jump to latest
#1Andres Freund
andres@anarazel.de

postmaster: Update pmState via a wrapper function

This makes logging of state changes easier - state transitions are now logged
at DEBUG1. Without that logging it was surprisingly hard to understand the
current state of the system while debugging.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: /messages/by-id/kgng5nrvnlv335evmsuvpnh354rw7qyazl73kdysev2cr2v5zu@m3cfzxicm5kp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7148cbbdc65d68167967e67ed155c7f1635bc8e7

Modified Files
--------------
src/backend/postmaster/postmaster.c | 79 +++++++++++++++++++++++++++----------
1 file changed, 58 insertions(+), 21 deletions(-)