git.postgresql.org Git - postgresql.git/commit
2025年3月30日 20:10:51 +0000 (16:10 -0400)
2025年3月30日 20:12:04 +0000 (16:12 -0400)
commit b96d3c389755fc5d20f4a5b9ded58b68541b8ba3
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
This is the main PostgreSQL git repository.
RSS
Atom