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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 5e07d3d) | patch
pgstat: add pg_stat_force_next_flush(), use it to simplify tests.
Thu, 7 Apr 2022 06:35:56 +0000 (23:35 -0700)
Thu, 7 Apr 2022 06:35:56 +0000 (23:35 -0700)
commit 0f96965c658147d6d6bad096d2d4a2c9c665f4a9
pgstat: add pg_stat_force_next_flush(), use it to simplify tests.

In the stats collector days it was hard to write tests for the stats system,
because fundamentally delivery of stats messages over UDP was not
synchronous (nor guaranteed). Now we easily can force pending stats updates to
be flushed synchronously.

This moves stats.sql into a parallel group, there isn't a reason for it to run
in isolation anymore. And it may shake out some bugs.

Bumps catversion.

Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
contrib/test_decoding/expected/stats.out diff | blob | blame | history
contrib/test_decoding/sql/stats.sql diff | blob | blame | history
src/backend/utils/activity/pgstat.c diff | blob | blame | history
src/backend/utils/adt/pgstatfuncs.c diff | blob | blame | history
src/include/catalog/pg_proc.dat diff | blob | blame | history
src/include/pgstat.h diff | blob | blame | history
src/test/regress/expected/brin.out diff | blob | blame | history
src/test/regress/expected/stats.out diff | blob | blame | history
src/test/regress/parallel_schedule diff | blob | blame | history
src/test/regress/sql/brin.sql diff | blob | blame | history
src/test/regress/sql/stats.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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