aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2021-04-23 11:41:36 +0200
committerMagnus Hagander <magnus@hagander.net>2021-04-23 11:45:28 +0200
commit7531fcb1fcf5b3ea2f49959a3f095c083e3fc4c4 (patch)
tree570feb266ed792d2ec67b9a176633cf495a1b536 /doc/src
parentadd5fad78aac8da96aeeb730155d35b16ff9b55a (diff)
downloadpostgresql-7531fcb1fcf5b3ea2f49959a3f095c083e3fc4c4.tar.gz
postgresql-7531fcb1fcf5b3ea2f49959a3f095c083e3fc4c4.zip
Mention that toplevel is part of pg_stat_statements key.
While at it, also document that toplevel is always true if pg_stat_statements.track is set to top. Author: Julien Rouhaud Reported-By: Fujii Masao Discussion: https://postgr.es/m/a878d5ea-64a7-485e-5d2f-177618ebc52d@oss.nttdata.com
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/pgstatstatements.sgml6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/sgml/pgstatstatements.sgml b/doc/src/sgml/pgstatstatements.sgml
index a0c315aa974..bc2b6038ee8 100644
--- a/doc/src/sgml/pgstatstatements.sgml
+++ b/doc/src/sgml/pgstatstatements.sgml
@@ -46,8 +46,8 @@
<para>
The statistics gathered by the module are made available via a
view named <structname>pg_stat_statements</structname>. This view
- contains one row for each distinct database ID, user ID and query
- ID (up to the maximum number of distinct statements that the module
+ contains one row for each distinct database ID, user ID, query ID and
+ toplevel (up to the maximum number of distinct statements that the module
can track). The columns of the view are shown in
<xref linkend="pgstatstatements-columns"/>.
</para>
@@ -93,6 +93,8 @@
</para>
<para>
True if the query was executed as a top level statement
+ (if <varname>pg_stat_statements.track</varname> is set to
+ <literal>all</literal>, otherwise always false)
</para></entry>
</row>