Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kovmir committed Nov 7, 2023
1 parent e2b05d2 commit 9a77b73
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ To get query plans and see the corresponding query expression:
```
testdb=# \x
Expanded display is on.
testdb=# SELECT p.pid, p.level, p.plan, a.query
FROM pg_show_plans p
LEFT JOIN pg_stat_activity a
ON p.pid = a.pid AND p.level = 0 ORDER BY p.pid, p.level;
testdb=# SELECT * FROM pg_show_plans_q;
-[ RECORD 1 ]-----------------------------------------------------------------------------------------
pid | 11473
level | 0
Expand Down Expand Up @@ -121,7 +118,9 @@ query |

## Views

* `pg_show_plans`: defined as `SELECT * FROM pg_show_plans();`.
* `pg_show_plans`: defined as `SELECT * FROM pg_show_plans();` for convenience.
* `pg_show_plans_q`: same as `pg_show_plans`, but it has one more column with
the corresponding query strings.

## Functions

Expand Down

0 comments on commit 9a77b73

Please sign in to comment.