pgsql: Replace postmaster.c's own backend type codes with BackendType

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Replace postmaster.c's own backend type codes with BackendType
Date: 2024-11-14 14:13:15
Message-ID: E1tBaaw-001mW7-Ko@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Replace postmaster.c's own backend type codes with BackendType

Introduce a separate BackendType for dead-end children, so that we
don't need a separate dead_end flag.

Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec66f@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/18d67a8d7d30884655d65910b82781d9360819a6

Modified Files
--------------
src/backend/postmaster/launch_backend.c | 1 +
src/backend/postmaster/postmaster.c | 235 ++++++++++++++++++--------------
src/backend/utils/activity/pgstat_io.c | 3 +
src/backend/utils/init/miscinit.c | 43 +++---
src/include/miscadmin.h | 1 +
src/tools/pgindent/typedefs.list | 1 +
6 files changed, 168 insertions(+), 116 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-11-15 02:33:15 pgsql: Fix race conditions with drop of reused pgstats entries
Previous Message Peter Eisentraut 2024-11-14 08:37:22 pgsql: Remove a useless cast to (void *) in hash_search() call