pgsql: Use integer backend type when exec'ing a postmaster child - Mailing list pgsql-committers

From Álvaro Herrera
Subject pgsql: Use integer backend type when exec'ing a postmaster child
Date
Msg-id E1viDrO-001d60-2N@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Use integer backend type when exec'ing a postmaster child

This way we don't have to walk the entire process type array and
strcmp() the string with the names therein.  The integer value can be
directly used as array index instead.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Euler Taveira <euler@eulerto.com>
Discussion: https://postgr.es/m/202512090935.k3xrtr44hxkn@alvherre.pgsql

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/launch_backend.c | 37 +++++++++++++--------------------
1 file changed, 15 insertions(+), 22 deletions(-)


pgsql-committers by date:

Previous
From: Alexander Korotkov
Date:
Subject: pgsql: Remove redundant pg_unreachable() after elog(ERROR) from ExecWai
Next
From: Peter Eisentraut
Date:
Subject: pgsql: tests: Add a test C++ extension module