pgsql: Replace postmaster.c's own backend type codes with BackendType - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Replace postmaster.c's own backend type codes with BackendType
Date
Msg-id E1tBaaw-001mW7-Ko@gemulon.postgresql.org
Whole thread Raw
List 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@anarazel.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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove a useless cast to (void *) in hash_search() call
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix race conditions with drop of reused pgstats entries