aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_utils_var.h
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2017-06-23 18:58:46 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2017-06-23 18:58:46 +0100
commit9ea3c64124af039219aa5030d7af675dce5daa60 (patch)
tree5d32787a7dd1973e9cbebc0cdae02f70c9dc540f /contrib/btree_gist/btree_utils_var.h
parenta79122b06194927d2b79465f335b94f2b4472816 (diff)
downloadpostgresql-9ea3c64124af039219aa5030d7af675dce5daa60.tar.gz
postgresql-9ea3c64124af039219aa5030d7af675dce5daa60.zip
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
Diffstat (limited to 'contrib/btree_gist/btree_utils_var.h')
0 files changed, 0 insertions, 0 deletions