aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2019-10-18 22:32:18 +0900
committerFujii Masao <fujii@postgresql.org>2019-10-18 22:32:18 +0900
commitec1259e880dd0738a0b111e47d1b7153d3da20fd (patch)
treecf038ef453dc36549fe3f00a5c9584a6f04e949f /src/backend/access/gist/gist.c
parent9b95a36be8be6c3a78b303bbe709c622dc312e87 (diff)
downloadpostgresql-ec1259e880dd0738a0b111e47d1b7153d3da20fd.tar.gz
postgresql-ec1259e880dd0738a0b111e47d1b7153d3da20fd.zip
Fix failure of archive recovery with recovery_min_apply_delay enabled.
recovery_min_apply_delay parameter is intended for use with streaming replication deployments. However, the document clearly explains that the parameter will be honored in all cases if it's specified. So it should take effect even if in archive recovery. But, previously, archive recovery with recovery_min_apply_delay enabled always failed, and caused assertion failure if --enable-caasert is enabled. The cause of this problem is that; the ownership of recoveryWakeupLatch that recovery_min_apply_delay uses was taken only when standby mode is requested. So unowned latch could be used in archive recovery, and which caused the failure. This commit changes recovery code so that the ownership of recoveryWakeupLatch is taken even in archive recovery. Which prevents archive recovery with recovery_min_apply_delay from failing. Back-patch to v9.4 where recovery_min_apply_delay was added. Author: Fujii Masao Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/CAHGQGwEyD6HdZLfdWc+95g=VQFPR4zQL4n+yHxQgGEGjaSVheQ@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions