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 <[email protected]>
Reviewed-by: Euler Taveira <[email protected]>
Discussion: https://postgr.es/m/[email protected]

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(-)

Reply via email to