pgsql: Allow BASE_BACKUP to be throttled

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow BASE_BACKUP to be throttled
Date: 2014-02-27 21:57:25
Message-ID: E1WJ8xJ-0006qy-I4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ef5856fd9b77ef9d0d0c31fb314bb61bbfb1d704

Modified Files
--------------
doc/src/sgml/protocol.sgml | 18 ++++-
doc/src/sgml/ref/pg_basebackup.sgml | 21 +++++
src/backend/replication/basebackup.c | 137 +++++++++++++++++++++++++++++++-
src/backend/replication/repl_gram.y | 8 +-
src/backend/replication/repl_scanner.l | 1 +
src/bin/pg_basebackup/pg_basebackup.c | 134 +++++++++++++++++++++++++++----
src/include/replication/basebackup.h | 7 ++
7 files changed, 306 insertions(+), 20 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2014-02-28 02:53:44 pgsql: pgbench: Fix help message
Previous Message Tom Lane 2014-02-27 19:58:54 pgsql: Remove dependency on database encoding in citext regression test