postgresql/src/backend/access
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
..
brin Improve index AMs' opclass validation procedures. 2016-01-21 19:47:15 -05:00
common Restructure index access method API to hide most of it at the C level. 2016-01-17 19:36:59 -05:00
gin Fix whitespace 2016-01-30 15:58:20 -05:00
gist Fix lossy KNN GiST when ordering operator returns non-float8 value. 2016-02-02 15:20:33 +03:00
hash Improve ResourceOwners' behavior for large numbers of owned objects. 2016-01-26 15:20:30 -05:00
heap Change the format of the VM fork to add a second bit per page. 2016-03-01 21:49:41 -05:00
index Improve index AMs' opclass validation procedures. 2016-01-21 19:47:15 -05:00
nbtree Revert buggy optimization of index scans 2016-03-03 09:53:43 +00:00
rmgrdesc Change delimiter used for display of NextXID 2016-02-12 14:23:59 -08:00
spgist Suppress compiler warning. 2016-01-21 21:14:07 -05:00
tablesample Update copyright for 2016 2016-01-02 13:33:40 -05:00
transam Ignore recovery_min_apply_delay until recovery has reached consistent state 2016-03-06 02:29:04 +09:00
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00