Improve PostgreSQL plugin documentation (#2777)

This commit is contained in:
Adrian Sadłocha 2017-05-09 21:58:43 +02:00 committed by Daniel Nelson
parent 5af985ef5f
commit 8124cfa3ed
1 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ create extension pg_proctab;
## Views ## Views
- Blocking sessions - Blocking sessions
``` ```sql
CREATE OR REPLACE VIEW public.blocking_procs AS CREATE OR REPLACE VIEW public.blocking_procs AS
SELECT a.datname AS db, SELECT a.datname AS db,
kl.pid AS blocking_pid, kl.pid AS blocking_pid,
@ -156,7 +156,7 @@ CREATE OR REPLACE VIEW public.blocking_procs AS
ORDER BY a.query_start; ORDER BY a.query_start;
``` ```
- Sessions Statistics - Sessions Statistics
``` ```sql
CREATE OR REPLACE VIEW public.sessions AS CREATE OR REPLACE VIEW public.sessions AS
WITH proctab AS ( WITH proctab AS (
SELECT pg_proctab.pid, SELECT pg_proctab.pid,