Re: error context for vacuum to include block number
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org
Date: 2019-12-24T04:19:09Z
Lists: pgsql-hackers
Attachments
- vacuumlazy-index-refactor-v7.patch (text/x-diff) patch v7
On Mon, Dec 23, 2019 at 07:24:28PM -0600, Justin Pryzby wrote: > I renamed. Hmm. I have found what was partially itching me for patch 0002, and that's actually the fact that we don't do the error reporting for heap within lazy_vacuum_heap() because the code relies too much on updating two progress parameters at the same time, on top of the fact that you are mixing multiple concepts with this refactoring. One problem is that if this code is refactored in the future, future callers of lazy_vacuum_heap() would miss the update of the progress reporting. Splitting things improves also the readability of the code, so attached is the refactoring I would do for this portion of the set. It is also more natural to increment num_index_scans when the reporting happens on consistency grounds. (Please note that I have not indented yet the patch.) -- Michael
Commits
-
Avoid calls to RelationGetRelationName() and RelationGetNamespace() in
- ef75140fe756 13.0 landed
-
Introduce vacuum errcontext to display additional information.
- b61d161c1463 13.0 landed
-
Fix mesurement of elapsed time during truncating heap in VACUUM.
- 007491979461 13.0 cited
-
Allow vacuum command to process indexes in parallel.
- 40d964ec997f 13.0 cited
-
Refactor code dedicated to index vacuuming in vacuumlazy.c
- 1ab41a3c8edc 13.0 landed
-
Remove duplicated progress reporting during heap scan of VACUUM
- e5a02e0fc68b 13.0 landed