Re: display offset along with block number in vacuum errors

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>, Mahendra Singh Thalor <mahi6run@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>, Amit Kapila <akapila@postgresql.org>, Andres Freund <andres@anarazel.de>
Date: 2020-08-05T11:19:15Z
Lists: pgsql-hackers
On Sun, Aug 2, 2020 at 10:43 PM Masahiko Sawada
<masahiko.sawada@2ndquadrant.com> wrote:
> I think that since the user who uses this errcontext information is
> likely to know more or less the internal of PostgreSQL I think 0-based
> block number and 1-based offset will not be a problem. However, I
> expected these are documented but couldn't find. If not yet, I think
> it’s a good time to document that.

I agree. That's just how TIDs are.


--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Commits

  1. Add additional information in the vacuum error context.

  2. Improve the vacuum error context phase information.

  3. Introduce vacuum errcontext to display additional information.