Clarify description of pg_stat_statements columns
authorMagnus Hagander <magnus@hagander.net>
Wed, 14 Jul 2021 09:04:15 +0000 (11:04 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 14 Jul 2021 09:11:11 +0000 (11:11 +0200)
Reported-By: Peter Eisentraut
Backpatch-through: 14
Discussion: https://postgr.es/m/8f5e63b8-e8ed-0f80-d8c4-68222624c200@enterprisedb.com

doc/src/sgml/pgstatstatements.sgml

index 1696a6e63694d7bb0c36265e02593203f85a4fde..542b197282cdcc4f206d297f4f39bde7822f06cd 100644 (file)
   <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, 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
+   contains one row for each distinct combination of database ID, user
+   ID, query ID and whether it's a top level statement or not (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>