File: prioritize.sql

package info (click to toggle)
postgresql-prioritize 1.0.4-1.3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 112 kB
  • ctags: 31
  • sloc: ansic: 88; makefile: 29; sql: 11; sh: 1
file content (11 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
CREATE EXTENSION prioritize;

SELECT get_backend_priority(pg_backend_pid());
SELECT set_backend_priority(pg_backend_pid(), -5);
SET client_min_messages = warning;
SELECT set_backend_priority(pg_backend_pid(), 5);
RESET client_min_messages;
SELECT get_backend_priority(pg_backend_pid());

SELECT get_backend_priority(1);
SELECT set_backend_priority(1, 5);