Re: Reconcile stats in find_tabstat_entry() and get rid of PgStat_BackendFunctionEntry

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: michael(at)paquier(dot)xyz
Cc: bertranddrouvot(dot)pg(at)gmail(dot)com, andres(at)anarazel(dot)de, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Reconcile stats in find_tabstat_entry() and get rid of PgStat_BackendFunctionEntry
Date: 2023-03-22 02:37:03
Message-ID: 20230322.113703.997940179321303299.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Wed, 22 Mar 2023 10:16:12 +0900, Michael Paquier <michael(at)paquier(dot)xyz> wrote in
> On Mon, Mar 20, 2023 at 11:57:31AM +0100, Drouvot, Bertrand wrote:
> > "Buffer" sounds more appropriate to me, so the attached has been done that way.
>
> This choice is OK for me.
>
> > + <indexterm>
> > + <primary>pg_stat_get_xact_blocks_fetched</primary>
> > + </indexterm>
> > + <function>pg_stat_get_xact_blocks_fetched</function> ( <type>oid</type> )
> > + <returnvalue>bigint</returnvalue>
> > + </para>
> > + <para>
> > + Returns the number of buffer fetches for table or index, in the current transaction
>
> This should be "number of buffer fetched", no?

In the original description, "buffer fetches" appears to be a plural
form of a compound noun and correct, similar to "buffer hits"
mentioned later. If we reword it, I think it should be "number of
buffers fetched".

> > + </indexterm>
> > + <function>pg_stat_get_xact_blocks_hit</function> ( <type>oid</type> )
> > + <returnvalue>bigint</returnvalue>
> > + </para>
> > + <para>
> > + Returns the number of buffer hits for table or index, in the current transaction
> > + </para></entry>
>
> This one looks OK to me too.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2023-03-22 02:43:05 misplaced GUC in pqcomm.h -- where to put actual common variable though...?
Previous Message Justin Pryzby 2023-03-22 02:19:41 Re: Improve logging when using Huge Pages