Use integer backend type when exec'ing a postmaster child

Álvaro Herrera <alvherre@kurilemu.de>

Commit: f1cd34f95272fe62aa9378f9164431399e94a135
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: 2026-01-20T15:41:04Z
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

Files

PathChange+/−
src/backend/postmaster/launch_backend.c modified +15 −22

Discussion