aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2025-03-30 16:10:51 -0400
committerAndres Freund <andres@anarazel.de>2025-03-30 16:12:04 -0400
commitb96d3c389755fc5d20f4a5b9ded58b68541b8ba3 (patch)
tree7f51dd0ca8b8ce07e2bfa02e3aceda709d2c86d1 /src/backend/access/gist/gistvacuum.c
parent4244cf68769773ba30b868354f1f2fe93238e98b (diff)
downloadpostgresql-b96d3c389755fc5d20f4a5b9ded58b68541b8ba3.tar.gz
postgresql-b96d3c389755fc5d20f4a5b9ded58b68541b8ba3.zip
pgstat: Allow checksum errors to be reported in critical sections
For AIO we execute completion callbacks in critical sections (to ensure that AIO can in the future be used for WAL, which in turn requires that we can call completion callbacks in critical sections, to get the resources for WAL io). To report checksum errors a backend now has to call pgstat_prepare_report_checksum_failure(), before entering a critical section, which guarantees the relevant pgstats entry is in shared memory, the relevant DSM segment is mapped into the backend's memory and the address is known via a PgStat_EntryRef. Reviewed-by: Noah Misch <noah@leadboat.com> Discussion: https://postgr.es/m/wkjj4p2rmkevutkwc6tewoovdqznj6c6nvjmvii4oo5wmbh5sr@retq7d6uqs4j
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions