aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2018-09-28 16:54:40 +0530
committerAmit Kapila <akapila@postgresql.org>2018-09-28 16:54:40 +0530
commit85cc9c4e2da88d7a1d160e091ec41f3fed7d271b (patch)
treef396fbaae7f595c08f3cdfea43073049dc5852d9 /src/backend/utils/adt/json.c
parented9d6d621a0933388aba3d3b150882b2ef6b8d01 (diff)
downloadpostgresql-85cc9c4e2da88d7a1d160e091ec41f3fed7d271b.tar.gz
postgresql-85cc9c4e2da88d7a1d160e091ec41f3fed7d271b.zip
Fix assertion failure when updating full_page_writes for checkpointer.
When the checkpointer receives a SIGHUP signal to update its configuration, it may need to update the shared memory for full_page_writes and need to write a WAL record for it. Now, it is quite possible that the XLOG machinery has not been initialized by that time and it will lead to assertion failure while doing that. Fix is to allow the initialization of the XLOG machinery outside critical section. This bug has been introduced by the commit 2c03216d83 which added the XLOG machinery initialization in RecoveryInProgress code path. Reported-by: Dilip Kumar Author: Dilip Kumar Reviewed-by: Michael Paquier and Amit Kapila Backpatch-through: 9.5 Discussion: https://postgr.es/m/CAFiTN-u4BA8KXcQUWDPNgaKAjDXC=C2whnzBM8TAcv=stckYUw@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions