pg_control_priority.c
/*
 * Set the scheduling priority of PostgreSQL server process.
 */
Set the scheduling priority of PostgreSQL server process.
Set the scheduling priority of PostgreSQL server process .
Datum
pg_set_priority(PG_FUNCTION_ARGS)
{
	int			pid = PG_GETARG_INT32(0);
	int			priority = PG_GETARG_INT32(1);
	CheckPostgresPid(pid);
	SetProcessPriority(pid, priority, ERROR);
	PG_RETURN_VOID();
}
Datum pg_set_priority ( PG_FUNCTION_ARGS ) { int pid = PG_GETARG_INT32 ( 0 ) ; int priority = PG_GETARG_INT32 ( 1 ) ; CheckPostgresPid ( pid ) ; SetProcessPriority ( pid , priority , ERROR ) ; PG_RETURN_VOID ( ) ; }
Set the scheduling priority of PostgreSQL server process.
Set the scheduling priority of PostgreSQL server process .