pgsql: postmaster: Update pmState via a wrapper function

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: postmaster: Update pmState via a wrapper function
Date: 2025-01-10 16:44:53
Message-ID: E1tWI7x-000r61-Ji@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)iki(dot)fi>
Reviewed-by: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Reviewed-by: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Discussion: https://postgr.es/m/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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2025-01-10 19:18:30 pgsql: Use a non-locking initial test in TAS_SPIN on AArch64.
Previous Message Álvaro Herrera 2025-01-10 12:14:58 pgsql: Adjust signature of cluster_rel() and its subroutines