Re: error context for vacuum to include block number
Justin Pryzby <pryzby@telsasoft.com>
From: Justin Pryzby <pryzby@telsasoft.com>
To: Amit Kapila <amit.kapila16@gmail.com>, Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Andres Freund <andres@anarazel.de>, Michael Paquier <michael@paquier.xyz>, pgsql-hackers@postgresql.org
Date: 2020-03-25T10:12:29Z
Lists: pgsql-hackers
Attachments
On Wed, Mar 25, 2020 at 09:16:46AM +0530, Amit Kapila wrote: > I think by mistake you have re-introduced this chunk of code. We > don't need this as we have done it in the caller. Yes, sorry. I used too much of git-am and git-rebase to make sure I didn't lose your changes and instead reintroduced them. On Wed, Mar 25, 2020 at 02:16:35PM +0900, Masahiko Sawada wrote: > > > Won't the latest patch by Justin will fix this as he has updated the > > > block count after count_nondeletable_pages? Apart from that, I feel > > > > The issue is if the error happens *during* count_nondeletable_pages(). > > We don't want it to say "truncating relation to 100 blocks". > > Right. > > > > the first call to update_vacuum_error_cbarg in lazy_truncate_heap > > > should have input parameter as vacrelstats->nonempty_pages instead of > > > new_rel_pages to indicate the remaining pages after truncation? > > > > Yea, I think that addresses the issue. Attached patch addressing these. -- Justin
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