pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedwhen is pg_stat_archiver.stats_reset modified?
3+ messages / 3 participants
[nested] [flat]
* when is pg_stat_archiver.stats_reset modified?
@ 2021-02-18 11:20 Luca Ferrari <fluca1978@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Luca Ferrari @ 2021-02-18 11:20 UTC (permalink / raw)
To: pgsql-general <pgsql-general@lists.postgresql.org>
Hi all,
running on 12.5, but I guess this does not mind, I cannot understand
when the value of pg_stat_archiver.stats_reset field is modified.
I've executed a pg_stat_reset() but it did not affected the specified field.
I suppose that field is not "resettable" by the administrator, as I
tried to, but then what drives changes?
Thanks,
Luca
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: when is pg_stat_archiver.stats_reset modified?
@ 2021-02-18 11:57 Ian Lawrence Barwick <barwick@gmail.com>
parent: Luca Ferrari <fluca1978@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Ian Lawrence Barwick @ 2021-02-18 11:57 UTC (permalink / raw)
To: Luca Ferrari <fluca1978@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
2021年2月18日(木) 20:21 Luca Ferrari <fluca1978@gmail.com>:
> Hi all,
> running on 12.5, but I guess this does not mind, I cannot understand
> when the value of pg_stat_archiver.stats_reset field is modified.
> I've executed a pg_stat_reset() but it did not affected the specified
> field.
> I suppose that field is not "resettable" by the administrator, as I
> tried to, but then what drives changes?
>
As pg_stat_archiver shows cluster-wide stats, you need
pg_stat_reset_shared().
https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-STATS-FUNCTIONS
Regards
Ian Barwick
--
EnterpriseDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: when is pg_stat_archiver.stats_reset modified?
@ 2021-02-18 12:06 Laurenz Albe <laurenz.albe@cybertec.at>
parent: Luca Ferrari <fluca1978@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Laurenz Albe @ 2021-02-18 12:06 UTC (permalink / raw)
To: Luca Ferrari <fluca1978@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>
On Thu, 2021-02-18 at 12:20 +0100, Luca Ferrari wrote:
> running on 12.5, but I guess this does not mind, I cannot understand
> when the value of pg_stat_archiver.stats_reset field is modified.
> I've executed a pg_stat_reset() but it did not affected the specified field.
> I suppose that field is not "resettable" by the administrator, as I
> tried to, but then what drives changes?
SELECT pg_stat_reset_shared('archiver');
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2021-02-18 12:06 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 11:20 when is pg_stat_archiver.stats_reset modified? Luca Ferrari <fluca1978@gmail.com>
2021-02-18 11:57 ` Ian Lawrence Barwick <barwick@gmail.com>
2021-02-18 12:06 ` Laurenz Albe <laurenz.albe@cybertec.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox