@@ -5055,10 +5055,11 @@ description | Waiting for a newly initialized WAL file to reach durable storage
50555055 <primary>pg_stat_clear_snapshot</primary>
50565056 </indexterm>
50575057 <function>pg_stat_clear_snapshot</function> ()
5058- <returnvalue>void </returnvalue>
5058+ <returnvalue>timestamp with time zone </returnvalue>
50595059 </para>
50605060 <para>
5061- Discards the current statistics snapshot or cached information.
5061+ Discards the current statistics snapshot or cached information, and
5062+ returns the time of the discard.
50625063 </para></entry>
50635064 </row>
50645065
@@ -5068,10 +5069,11 @@ description | Waiting for a newly initialized WAL file to reach durable storage
50685069 <primary>pg_stat_reset</primary>
50695070 </indexterm>
50705071 <function>pg_stat_reset</function> ()
5071- <returnvalue>void </returnvalue>
5072+ <returnvalue>timestamp with time zone </returnvalue>
50725073 </para>
50735074 <para>
5074- Resets all statistics counters for the current database to zero.
5075+ Resets all statistics counters for the current database to zero, and
5076+ returns the time of the reset.
50755077 </para>
50765078 <para>
50775079 This function is restricted to superusers by default, but other users
@@ -5085,11 +5087,12 @@ description | Waiting for a newly initialized WAL file to reach durable storage
50855087 <primary>pg_stat_reset_shared</primary>
50865088 </indexterm>
50875089 <function>pg_stat_reset_shared</function> ( [ <parameter>target</parameter> <type>text</type> <literal>DEFAULT</literal> <literal>NULL</literal> ] )
5088- <returnvalue>void </returnvalue>
5090+ <returnvalue>timestamp with time zone </returnvalue>
50895091 </para>
50905092 <para>
50915093 Resets some cluster-wide statistics counters to zero, depending on the
5092- argument. <parameter>target</parameter> can be:
5094+ argument, and returns the time of the reset.
5095+ <parameter>target</parameter> can be:
50935096 <itemizedlist>
50945097 <listitem>
50955098 <para>
@@ -5153,11 +5156,12 @@ description | Waiting for a newly initialized WAL file to reach durable storage
51535156 <primary>pg_stat_reset_single_table_counters</primary>
51545157 </indexterm>
51555158 <function>pg_stat_reset_single_table_counters</function> ( <type>oid</type> )
5156- <returnvalue>void </returnvalue>
5159+ <returnvalue>timestamp with time zone </returnvalue>
51575160 </para>
51585161 <para>
51595162 Resets statistics for a single table or index in the current database
5160- or shared across all databases in the cluster to zero.
5163+ or shared across all databases in the cluster to zero, and returns the
5164+ time of the reset.
51615165 </para>
51625166 <para>
51635167 This function is restricted to superusers by default, but other users
@@ -5171,11 +5175,12 @@ description | Waiting for a newly initialized WAL file to reach durable storage
51715175 <primary>pg_stat_reset_backend_stats</primary>
51725176 </indexterm>
51735177 <function>pg_stat_reset_backend_stats</function> ( <type>integer</type> )
5174- <returnvalue>void </returnvalue>
5178+ <returnvalue>timestamp with time zone </returnvalue>
51755179 </para>
51765180 <para>
51775181 Resets statistics for a single backend with the specified process ID
5178- to zero.
5182+ to zero, and returns the time of the reset or <literal>NULL</literal>
5183+ if an invalid backend process ID is specified.
51795184 </para>
51805185 <para>
51815186 This function is restricted to superusers by default, but other users
@@ -5189,11 +5194,11 @@ description | Waiting for a newly initialized WAL file to reach durable storage
51895194 <primary>pg_stat_reset_single_function_counters</primary>
51905195 </indexterm>
51915196 <function>pg_stat_reset_single_function_counters</function> ( <type>oid</type> )
5192- <returnvalue>void </returnvalue>
5197+ <returnvalue>timestamp with time zone </returnvalue>
51935198 </para>
51945199 <para>
51955200 Resets statistics for a single function in the current database to
5196- zero.
5201+ zero, and returns the time of the reset .
51975202 </para>
51985203 <para>
51995204 This function is restricted to superusers by default, but other users
@@ -5207,11 +5212,11 @@ description | Waiting for a newly initialized WAL file to reach durable storage
52075212 <primary>pg_stat_reset_slru</primary>
52085213 </indexterm>
52095214 <function>pg_stat_reset_slru</function> ( [ <parameter>target</parameter> <type>text</type> <literal>DEFAULT</literal> <literal>NULL</literal> ] )
5210- <returnvalue>void </returnvalue>
5215+ <returnvalue>timestamp with time zone </returnvalue>
52115216 </para>
52125217 <para>
52135218 Resets statistics to zero for a single SLRU cache, or for all SLRUs in
5214- the cluster. If <parameter>target</parameter> is
5219+ the cluster, and returns the time of the reset . If <parameter>target</parameter> is
52155220 <literal>NULL</literal> or is not specified, all the counters shown in
52165221 the <structname>pg_stat_slru</structname> view for all SLRU caches are
52175222 reset. The argument can be one of
@@ -5239,12 +5244,13 @@ description | Waiting for a newly initialized WAL file to reach durable storage
52395244 <primary>pg_stat_reset_replication_slot</primary>
52405245 </indexterm>
52415246 <function>pg_stat_reset_replication_slot</function> ( <type>text</type> )
5242- <returnvalue>void </returnvalue>
5247+ <returnvalue>timestamp with time zone </returnvalue>
52435248 </para>
52445249 <para>
5245- Resets statistics of the replication slot defined by the argument. If
5246- the argument is <literal>NULL</literal>, resets statistics for all
5247- the replication slots.
5250+ Resets statistics of the replication slot defined by the argument, and
5251+ returns the time of the reset or <literal>NULL</literal> if the replication
5252+ slot defined by the argument is a physical slot. If the argument is
5253+ <literal>NULL</literal>, resets statistics for all the replication slots.
52485254 </para>
52495255 <para>
52505256 This function is restricted to superusers by default, but other users
@@ -5258,13 +5264,13 @@ description | Waiting for a newly initialized WAL file to reach durable storage
52585264 <primary>pg_stat_reset_subscription_stats</primary>
52595265 </indexterm>
52605266 <function>pg_stat_reset_subscription_stats</function> ( <type>oid</type> )
5261- <returnvalue>void </returnvalue>
5267+ <returnvalue>timestamp with time zone </returnvalue>
52625268 </para>
52635269 <para>
52645270 Resets statistics for a single subscription shown in the
5265- <structname>pg_stat_subscription_stats</structname> view to zero. If
5266- the argument is <literal>NULL</literal>, reset statistics for all
5267- subscriptions.
5271+ <structname>pg_stat_subscription_stats</structname> view to zero, and
5272+ returns the time of the reset. If the argument is
5273+ <literal>NULL</literal>, reset statistics for all subscriptions.
52685274 </para>
52695275 <para>
52705276 This function is restricted to superusers by default, but other users
0 commit comments