Skip to content

Commit 7531fcb

Browse files
committed
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
1 parent add5fad commit 7531fcb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/pgstatstatements.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
<para>
4747
The statistics gathered by the module are made available via a
4848
view named <structname>pg_stat_statements</structname>. This view
49-
contains one row for each distinct database ID, user ID and query
50-
ID (up to the maximum number of distinct statements that the module
49+
contains one row for each distinct database ID, user ID, query ID and
50+
toplevel (up to the maximum number of distinct statements that the module
5151
can track). The columns of the view are shown in
5252
<xref linkend="pgstatstatements-columns"/>.
5353
</para>
@@ -93,6 +93,8 @@
9393
</para>
9494
<para>
9595
True if the query was executed as a top level statement
96+
(if <varname>pg_stat_statements.track</varname> is set to
97+
<literal>all</literal>, otherwise always false)
9698
</para></entry>
9799
</row>
98100

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy