On Tue, Jul 13, 2021 at 8:10 AM Julien Rouhaud <rjuju123@gmail.com> wrote:
>
> On Mon, Jul 12, 2021 at 10:02:59PM +0200, Peter Eisentraut wrote:
> > On 22.04.21 11:23, Julien Rouhaud wrote:
> > > 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"/>.
> >
> > I'm having trouble parsing this new sentence. It now says essentially
> >
> > "This view contains one row for each distinct database ID, each distinct
> > user ID, each distinct query ID, and each distinct toplevel."
>
> Isn't it each distinct permutation of all those fields?
Maybe a problem for the readability of it is that the three other
fields are listed by their description and not by their fieldname, and
toplevel is fieldname?
Maybe "each distinct database id, each distinct user id, each distinct
query id, and whether it is a top level statement or not"?
Or maybe "each distinct combination of database id, user id, query id
and whether it's a top level statement or not"?
--
Magnus Hagander
Me: https://www.hagander.net/
Work: https://www.redpill-linpro.com/