pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Create a separate file listing backend types
Date: Fri, 26 Sep 2025 13:22:24 +0000
Message-ID: <E1v28P1-000B0m-2B@gemulon.postgresql.org> (raw)

Create a separate file listing backend types

Use our established coding pattern to reduce maintenance pain when
adding other per-process-type characteristics.

Like PG_KEYWORD, PG_CMDTAG, PG_RMGR.

To keep the strings translatable, the relevant makefile now also scans
src/include for this specific file.  I didn't want to have it scan all
.h files, as then gettext would have to scan all header files.  I didn't
find any way to affect the meson behavior in this respect though.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Co-authored-by: Jonathan Gonzalez V. <jonathan.abdiel@gmail.com>
Discussion: https://postgr.es/m/202507151830.dwgz5nmmqtdy@alvherre.pgsql

Branch
------
master

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

Modified Files
--------------
src/backend/nls.mk                      |  2 +-
src/backend/postmaster/launch_backend.c | 32 +++---------------
src/backend/utils/init/miscinit.c       | 59 +++------------------------------
src/include/postmaster/proctypelist.h   | 51 ++++++++++++++++++++++++++++
src/tools/pginclude/headerscheck        |  9 ++---
5 files changed, 65 insertions(+), 88 deletions(-)



Message-ID: <E1v28P1-000B0m-2B@gemulon.postgresql.org>
Permalink:  ../E1v28P1-000B0m-2B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1v28P1-000B0m-2B@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: alvherre@kurilemu.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Create a separate file listing backend types
  In-Reply-To: <E1v28P1-000B0m-2B@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox