pgstat: Prepare to use mechanism for truncated rels also for droppped rels.
Andres Freund <andres@anarazel.de>
pgstat: Prepare to use mechanism for truncated rels also for droppped rels. The upcoming shared memory stats patch drops stats for dropped objects in a transactional manner, rather than removing them later as part of vacuum. This means that stats for DROP inside a transaction needs to handle aborted (sub-)transactions similar to TRUNCATE: The stats up to the DROP should be restored. Rename the existing infrastructure in preparation. Author: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20210405092914.mmxqe7j56lsjfsej@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/pgstat.c | modified | +50 −43 |
| src/include/pgstat.h | modified | +7 −5 |
Discussion
- shared-memory based stats collector 339 messages · 2018-06-29 → 2024-12-10