aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-03-13 20:59:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-03-13 20:59:51 -0400
commitf16ca975500b7aab5026f164b1bc7bf833e2190b (patch)
tree10dcf33f3c3d0baacb7e7e573b57ffec2b4a163f /src/backend/access/gist/gistproc.c
parent7bfdf10f5aa33b9878a24d618dca75e9f60255d9 (diff)
downloadpostgresql-f16ca975500b7aab5026f164b1bc7bf833e2190b.tar.gz
postgresql-f16ca975500b7aab5026f164b1bc7bf833e2190b.zip
Prevent interrupts while reporting non-ERROR elog messages.
This should eliminate the risk of recursive entry to syslog(3), which appears to be the cause of the hang reported in bug #9551 from James Morton. Arguably, the real problem here is auth.c's willingness to turn on ImmediateInterruptOK while executing fairly wide swaths of backend code. We may well need to work at narrowing the code ranges in which the authentication_timeout interrupt is enabled. For the moment, though, this is a cheap and reasonably noninvasive fix for a field-reported failure; the other approach would be complex and not necessarily bug-free itself. Back-patch to all supported branches.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions