File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,7 @@ To get query plans and see the corresponding query expression:
7474```
7575testdb=# \x
7676Expanded 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 ]-----------------------------------------------------------------------------------------
8279pid | 11473
8380level | 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
You can’t perform that action at this time.
0 commit comments