postgresql/src
Fujii Masao d34794f7d5 Ignore recovery_min_apply_delay until recovery has reached consistent state
Previously recovery_min_apply_delay was applied even before recovery
had reached consistency. This could cause us to wait a long time
unexpectedly for read-only connections to be allowed. It's problematic
because the standby was useless during that wait time.

This patch changes recovery_min_apply_delay so that it's applied once
the database has reached the consistent state. That is, even if the delay
is set, the standby tries to replay WAL records as fast as possible until
it has reached consistency.

Author: Michael Paquier
Reviewed-By: Julien Rouhaud
Reported-By: Greg Clough
Backpatch: 9.4, where recovery_min_apply_delay was added
Bug: #13770
Discussion: http://www.postgresql.org/message-id/20151111155006.2644.84564@wrigleys.postgresql.org
2016-03-06 02:29:04 +09:00
..
backend Ignore recovery_min_apply_delay until recovery has reached consistent state 2016-03-06 02:29:04 +09:00
bin Fix query-based tab completion for multibyte characters. 2016-03-04 11:53:20 -05:00
common Cosmetic improvements in new config_info code. 2016-02-21 11:38:24 -05:00
include Improve support of Hunspell in ispell dictionary. 2016-03-04 20:08:47 +03:00
interfaces Fix incorrect comment. 2016-03-01 13:31:44 -05:00
makefiles Fix typos in comments and doc 2016-01-28 16:47:36 +09:00
pl Add prefix to pl/pgsql global variables and functions 2016-03-03 10:45:59 +01:00
port Add new system view, pg_config 2016-02-17 09:12:06 -08:00
template Remove some remains from Alpha support removal 2015-10-29 16:40:14 -04:00
test Make stats regression test robust in the face of parallel query. 2016-03-04 16:20:49 -05:00
timezone Update time zone data files to tzdata release 2016a. 2016-02-05 10:59:09 -05:00
tools Fix Windows build broken by d78a7d9c7f 2016-03-04 21:36:49 +03:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Respect TEMP_CONFIG when pg_regress_check and friends are called 2016-02-27 12:28:21 -05:00
Makefile.shlib AIX: Link TRANSFORM modules with their dependencies. 2015-07-15 21:00:26 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00