prioritize
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_prioritize | 1.0.4 | ADMIN | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5100 | prioritize | No | Yes | No | Yes | No | Yes | - |
| Related | plan_filter pg_kpart pg_readonly qos block_copy_command safeupdate pg_command_fw pg_strict pg_hint_plan |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 1.0.4 | 1817161514 | pg_prioritize | - |
| RPM | PGDG | 1.0.4 | 1817161514 | pg_prioritize_$v | - |
| DEB | PGDG | 1.0.4 | 1817161514 | postgresql-$v-prioritize | - |
Install
You can install pg_prioritize directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
Sources:
prioritize exposes operating-system priority controls for PostgreSQL backend processes. Use it to lower the scheduling priority of selected sessions; it is not a PostgreSQL query scheduler.
Inspect and Adjust a Backend
Any user may query a backend’s priority. A PostgreSQL superuser may request adjustments for any backend; other users may adjust only backends running under the same database role.
Adjust Related Sessions
Increasing the numeric nice value lowers operating-system scheduling priority. The example therefore reduces those backends’ priority, rather than speeding them up.
Privileges and Limits
Installation requires a superuser, with no preload or restart. Operating-system permissions still apply: ordinary PostgreSQL processes normally cannot lower the numeric nice value to increase priority. Database superuser privileges do not confer root privileges. Review platform scheduling policy and process identity before using bulk adjustments. The control file uses SQL version 1.0; distribution package version 1.0.4 is separate.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)