prioritize
get and set the priority of PostgreSQL backends
pg_prioritize : get and set the priority of PostgreSQL backends
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 5100 | prioritize | pg_prioritize | 1.0.4 |
ADMIN | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | plan_filter pg_kpart pg_readonly qos block_copy_command safeupdate pg_command_fw pg_strict pg_hint_plan |
no pg 14 on el9
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 1.0.4 |
18 17 16 15 14 | pg_prioritize |
- |
| RPM | PGDG | 1.0.4 |
18 17 16 15 14 | pg_prioritize_$v |
- |
| DEB | PGDG | 1.0.4 |
18 17 16 15 14 | postgresql-$v-prioritize |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| el8.aarch64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| el9.x86_64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| el9.aarch64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| el10.x86_64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| el10.aarch64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| d12.x86_64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| d12.aarch64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| d13.x86_64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| d13.aarch64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| u22.x86_64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| u22.aarch64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| u24.x86_64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| u24.aarch64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| u26.x86_64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
| u26.aarch64 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 | PGDG 1.0.4 |
Source
github.com/schmiddy/pg_prioritize
Install
Make sure PGDG repo available:
Install this extension with pig:
Create this extension with:
Usage
The prioritize extension exposes getpriority() and setpriority() system calls for PostgreSQL backends, allowing you to renice backend processes from SQL.
Get Backend Priority
Any user may query the priority of any backend.
Set Backend Priority
Superusers can set the priority of any backend. Unprivileged users can only adjust backends with the same role.
Note: priority can only be raised (higher numeric value = lower OS priority). Only root can lower the numeric priority value, and PostgreSQL processes should not run as root.