diff options
author | Andres Freund <andres@anarazel.de> | 2022-04-14 17:40:25 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-04-14 17:40:25 -0700 |
commit | 5cd1c40b3ce9600f129fd1fea9850e1affaf31d5 (patch) | |
tree | 8623e26a249676650807815a245672c28d1af66a /src/backend/parser/parse_expr.c | |
parent | 3f19e176ae0f55a653d62e1504dbe5ad8c1006a0 (diff) | |
download | postgresql-5cd1c40b3ce9600f129fd1fea9850e1affaf31d5.tar.gz postgresql-5cd1c40b3ce9600f129fd1fea9850e1affaf31d5.zip |
pgstat: set timestamps of fixed-numbered stats after a crash.
When not loading stats at startup (i.e. pgstat_discard_stats() getting
called), reset timestamps of fixed numbered stats would be left at
0. Oversight in 5891c7a8ed8.
Instead use pgstat_reset_after_failure() and add tests verifying that
fixed-numbered reset timestamps are set appropriately.
Reported-By: "David G. Johnston" <david.g.johnston@gmail.com>
Discussion: https://postgr.es/m/CAKFQuwamFuaQHKdhcMt4Gbw5+Hca2UE741B8gOOXoA=TtAd2Yw@mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions