git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 81ae9e6) | patch
pgstat: fix small bug in pgstat_drop_relation().
Thu, 7 Apr 2022 06:35:56 +0000 (23:35 -0700)
Thu, 7 Apr 2022 06:35:56 +0000 (23:35 -0700)
commit 5e07d3d6bdbff998eb68c131ecd10c448b026e47
pgstat: fix small bug in pgstat_drop_relation().

Just after committing 5891c7a8ed8, a test running with debug_discard_caches=1
failed locally...

pgstat_drop_relation() neither checked pgstat_should_count_relation() nor
called pgstat_prep_relation_pending(). With debug_discard_caches=1
rel->pgstat_info wasn't set up, leading pg_stat_get_xact_tuples_inserted()
spuriously still returning > 0 while in the transaction dropping the table.
src/backend/utils/activity/pgstat_relation.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /