forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb61d161

Amit Kapila
Introduce vacuum errcontext to display additional information.
The additional information displayed will be block number for erroroccurring while processing heap and index name for error occurringwhile processing the index.This will help us in diagnosing the problems that occur during a vacuum.For ex. due to corruption (either caused by bad hardware or by some bug)if we get some error while vacuuming, it can help us identify the blockin heap and or additional index information.It sets up an error context callback to display additional informationwith the error. During different phases of vacuum (heap scan, heapvacuum, index vacuum, index clean up, heap truncate), we update the errorcontext callback to display appropriate information. We can extend it toa bit more granular level like adding the phases for FSM operations or forprefetching the blocks while truncating. However, I felt that it requiresadding many more error callback function calls and can make the code a bitcomplex, so left those for now.Author: Justin Pryzby, with few changes by Amit KapilaReviewed-by: Alvaro Herrera, Amit Kapila, Andres Freund, Michael Paquierand Sawada MasahikoDiscussion:https://www.postgresql.org/message-id/20191120210600.GC30362@telsasoft.com1 parent2743d9a commitb61d161
File tree
2 files changed
+216
-25
lines changed- src
- backend/access/heap
- tools/pgindent
2 files changed
+216
-25
lines changed0 commit comments
Comments
(0)