summaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-09-30 09:02:09 +0900
committerMichael Paquier <michael@paquier.xyz>2025-09-30 09:02:09 +0900
commit3cc689f833b1c9c5b52f1fe07c0e0fd817e23c8b (patch)
tree60be5d65abae88b3ee5dbee86a6667b8cd5f275e /src/tutorial/syscat.source
parentef38a4d9756db9ae1d20f40aa39f3cf76059b81a (diff)
injection_points: Add proper locking when reporting fixed-variable stats
Contrary to its siblings for the archiver, the bgwriter and the checkpointer stats, pgstat_report_inj_fixed() can be called concurrently. This was causing an assertion failure, while messing up with the stats. This code is aimed at being a template for extension developers, so it is not a critical issue, but let's be correct. This module has also been useful for some benchmarking, at least for me, and that was how I have discovered this issue. Oversight in f68cd847fa40. Author: Michael Paquier <michael@paquier.xyz> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Reviewed-by: wenhui qiu <qiuwenhuifx@gmail.com> Discussion: https://postgr.es/m/aNnXbAXHPFUWPIz2@paquier.xyz Backpatch-through: 18
Diffstat (limited to 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions