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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a79122b) | patch
Improve replication lag interpolation after idle period
2017年6月23日 17:58:46 +0000 (18:58 +0100)
2017年6月23日 17:58:46 +0000 (18:58 +0100)
commit 9ea3c64124af039219aa5030d7af675dce5daa60
Improve replication lag interpolation after idle period

After sitting idle and fully replayed for a while and then encountering
a new burst of WAL activity, we interpolate between an ancient sample and the
not-yet-reached one for the new traffic. That produced a corner case report
of lag after receiving first new reply from standby, which might sometimes
be a large spike.

Correct this by resetting last_read time and handle that new case.

Author: Thomas Munro
src/backend/replication/walsender.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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