postgresql/src/backend
Alvaro Herrera ebd346caf4 Correct base backup throttling
Throttling for sending a base backup in walsender is broken for the case
where there is a lot of WAL traffic, because the latch used to put the
walsender to sleep is also signalled by regular WAL traffic (and each
signal causes an additional batch of data to be sent); the net effect is
that there is no or little actual throttling.  This is undesirable, so
rewrite the sleep into a loop to achieve the desired effeect.

Author: Jeff Janes, small tweaks by me
Reviewed-by: Antonin Houska
Discussion: https://postgr.es/m/CAMkU=1xH6mde-yL-Eo1TKBGNd0PB1-TMxvrNvqcAkN-qr2E9mw@mail.gmail.com
2017-09-05 17:27:30 +02:00
..
access Use group updates when setting transaction status in clog. 2017-09-01 11:45:40 -04:00
bootstrap Change tupledesc->attrs[n] to TupleDescAttr(tupledesc, n). 2017-08-20 11:19:07 -07:00
catalog Tighten up some code in RelationBuildPartitionDesc. 2017-09-01 15:16:44 -04:00
commands Add a WAIT option to DROP_REPLICATION_SLOT 2017-09-01 13:44:14 +02:00
executor Improve division of labor between execParallel.c and nodeGather[Merge].c. 2017-09-01 17:39:01 -04:00
foreign Abstract logic to allow for multiple kinds of child rels. 2017-04-03 22:41:31 -04:00
lib Suppress compiler warnings in dshash.c. 2017-09-03 11:12:29 -04:00
libpq Clean up shm_mq cleanup. 2017-08-31 15:10:24 -04:00
main Change pg_ctl to detect server-ready by watching status in postmaster.pid. 2017-06-28 17:31:32 -04:00
nodes Force rescanning of parallel-aware scan nodes below a Gather[Merge]. 2017-08-30 09:29:55 -04:00
optimizer Expand partitioned tables in PartDesc order. 2017-08-31 15:50:18 -04:00
parser Improve plural handling in error message 2017-08-23 13:56:59 -04:00
po Translation updates 2017-08-07 13:55:34 -04:00
port Change pg_ctl to detect server-ready by watching status in postmaster.pid. 2017-06-28 17:31:32 -04:00
postmaster Use group updates when setting transaction status in clog. 2017-09-01 11:45:40 -04:00
regex Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
replication Correct base backup throttling 2017-09-05 17:27:30 +02:00
rewrite Change tupledesc->attrs[n] to TupleDescAttr(tupledesc, n). 2017-08-20 11:19:07 -07:00
snowball Initial pgindent run with pg_bsd_indent version 2.0. 2017-06-21 14:39:04 -04:00
statistics Remove obsolete comments about functional dependencies 2017-07-26 11:40:39 -04:00
storage Use group updates when setting transaction status in clog. 2017-09-01 11:45:40 -04:00
tcop Add memory info to getrusage output 2017-09-01 15:36:33 -04:00
tsearch Improve make_tsvector() to handle empty input, and simplify its callers. 2017-07-18 13:13:47 -04:00
utils Fix assorted carelessness about Datum vs. int64 vs. uint64 2017-09-01 00:14:54 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Add ICU_CFLAGS to global CPPFLAGS 2017-06-12 15:57:22 -04:00
Makefile Inject $(ICU_LIBS) regardless of platform. 2017-08-20 21:22:18 -07:00
nls.mk Translation updates 2017-05-15 12:19:54 -04:00