pg_control_priority.c
/*
 * Get the scheduling priority of PostgreSQL server process.
 */
Get the scheduling priority of PostgreSQL server process.
Get the scheduling priority of PostgreSQL server process .
Datum
pg_get_priority(PG_FUNCTION_ARGS)
{
	int			pid = PG_GETARG_INT32(0);
	int			priority;
	CheckPostgresPid(pid);
	priority = GetProcessPriority(pid, ERROR);
	PG_RETURN_INT32(priority);
}
Datum pg_get_priority ( PG_FUNCTION_ARGS ) { int pid = PG_GETARG_INT32 ( 0 ) ; int priority ; CheckPostgresPid ( pid ) ; priority = GetProcessPriority ( pid , ERROR ) ; PG_RETURN_INT32 ( priority ) ; }
Get the scheduling priority of PostgreSQL server process.
Get the scheduling priority of PostgreSQL server process .