aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2020-06-02 19:18:13 +0900
committerFujii Masao <fujii@postgresql.org>2020-06-02 19:21:04 +0900
commitcaa3c4242cf86322e2ed0c86199e6462a2c41565 (patch)
tree37c398265073850ae31a63241b4465114f2dc1e0 /src/backend/tcop/postgres.c
parente641b2a995abfa0dd7039863e2597feb3abf2b1e (diff)
downloadpostgresql-caa3c4242cf86322e2ed0c86199e6462a2c41565.tar.gz
postgresql-caa3c4242cf86322e2ed0c86199e6462a2c41565.zip
Don't call elog() while holding spinlock.
Previously UpdateSpillStats() called elog(DEBUG2) while holding the spinlock even though the local variables that the elog() accesses don't need to be protected by the lock. Since spinlocks are intended for very short-term locks, they should not be used when calling elog(DEBUG2). So this commit moves that elog() out of spinlock period. Author: Kyotaro Horiguchi Reviewed-by: Amit Kapila and Fujii Masao Discussion: https://postgr.es/m/20200602.161518.1399689010416646074.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions