Limit pg_basebackup progress output to 1/second

Magnus Hagander <magnus@hagander.net>

Commit: 8198a321c9ea2072c5acde438f4d19638e04f6f2
Author: Magnus Hagander <magnus@hagander.net>
Date: 2014-02-09T11:51:42Z
Releases: 9.4.0
Limit pg_basebackup progress output to 1/second

This prevents pg_basebackup from generating excessive output when
dumping large clusters. The status is now updated once / second,
still making it possible to see that there is progress happening,
but limiting the total bandwidth.

Mika Eloranta, reviewed by Sawada Masahiko and Oskari Saarenmaa

Files

PathChange+/−
src/bin/pg_basebackup/pg_basebackup.c modified +25 −10