File: prioritize.out

package info (click to toggle)
postgresql-prioritize 1.0.4-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: ansic: 88; makefile: 22; sql: 11; sh: 1
file content (43 lines) | stat: -rw-r--r-- 996 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
CREATE EXTENSION prioritize;
-- Default priority is of course 0, but some Debian buildds run at 10
SELECT get_backend_priority(pg_backend_pid()) BETWEEN 0 AND 10 AS get_backend_priority;
 get_backend_priority 
----------------------
 t
(1 row)

SELECT set_backend_priority(pg_backend_pid(), -5);
WARNING:  setpriority(): permission denied
 set_backend_priority 
----------------------
 f
(1 row)

SET client_min_messages = warning;
SELECT set_backend_priority(pg_backend_pid(), 15);
 set_backend_priority 
----------------------
 t
(1 row)

RESET client_min_messages;
SELECT get_backend_priority(pg_backend_pid());
 get_backend_priority 
----------------------
                   15
(1 row)

SELECT get_backend_priority(1);
WARNING:  PID 1 is not a PostgreSQL server process
 get_backend_priority 
----------------------
                     
(1 row)

SELECT set_backend_priority(1, 5);
WARNING:  PID 1 is not a PostgreSQL server process
 set_backend_priority 
----------------------
 f
(1 row)