Allow BASE_BACKUP to be throttled
Alvaro Herrera <alvherre@alvh.no-ip.org>
Allow BASE_BACKUP to be throttled A new MAX_RATE option allows imposing a limit to the network transfer rate from the server side. This is useful to limit the stress that taking a base backup has on the server. pg_basebackup is now able to specify a value to the server, too. Author: Antonin Houska Patch reviewed by Stefan Radomski, Andres Freund, Zoltán Böszörményi, Fujii Masao, and Álvaro Herrera.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/protocol.sgml | modified | +16 −2 |
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +21 −0 |
| src/backend/replication/basebackup.c | modified | +135 −2 |
| src/backend/replication/repl_gram.y | modified | +7 −1 |
| src/backend/replication/repl_scanner.l | modified | +1 −0 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +119 −15 |
| src/include/replication/basebackup.h | modified | +7 −0 |