pg_control_priority.c
/*
 * Check to see if a given pid is a running postmaster, backend, or
 * auxiliary process.
 */
Check to see if a given pid is a running postmaster, backend, or
auxiliary process.
Check to see if a given pid is a running postmaster backend or auxiliary process .
static void
CheckPostgresPid(int pid)
{
	if (PostmasterPid != pid && !IsBackendPid(pid) && !IsAuxiliaryPid(pid))
		ereport(ERROR,
				(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
				 (errmsg("PID %d is not a PostgreSQL server process", pid))));
}
static void CheckPostgresPid ( int pid ) { if ( PostmasterPid != pid && ! IsBackendPid ( pid ) && ! IsAuxiliaryPid ( pid ) ) ereport ( ERROR , ( errcode ( ERRCODE_INVALID_PARAMETER_VALUE ) , ( errmsg ( " " , pid ) ) ) ) ; }
Check to see if a given pid is a running postmaster, backend, or
 auxiliary process.
Check to see if a given pid is a running postmaster backend or auxiliary process .