Skip to content

Commit 142d5a9

Browse files
committed
Update documentation
1 parent b8783ca commit 142d5a9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ To get query plans and see the corresponding query expression:
7474
```
7575
testdb=# \x
7676
Expanded display is on.
77-
testdb=# SELECT p.pid, p.level, p.plan, a.query
78-
FROM pg_show_plans p
79-
LEFT JOIN pg_stat_activity a
80-
ON p.pid = a.pid AND p.level = 0 ORDER BY p.pid, p.level;
77+
testdb=# SELECT * FROM pg_show_plans_q;
8178
-[ RECORD 1 ]-----------------------------------------------------------------------------------------
8279
pid | 11473
8380
level | 0
@@ -121,7 +118,9 @@ query |
121118

122119
## Views
123120

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

126125
## Functions
127126

0 commit comments

Comments
 (0)