Improve vacuum error context handling.
authorAmit Kapila <akapila@postgresql.org>
Wed, 1 Jul 2020 02:28:36 +0000 (07:58 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 1 Jul 2020 02:28:36 +0000 (07:58 +0530)
commita69e041d0c91759fb60ab52e7e21e3ec3752c69b
tree314a7c4fdc8f253aa64594784d99c5fcafaa9496
parent684b4f29b729e5b135d256802d6e712222b9551f
Improve vacuum error context handling.

Use separate functions to save and restore error context information as
that made code easier to understand.  Also, make it clear that the index
information required for error context is sane.

Author: Andres Freund, Justin Pryzby, Amit Kapila
Backpatch-through: 13, where it was introduced
Discussion: https://postgr.es/m/CAA4eK1LWo+v1OWu=Sky27GTGSCuOmr7iaURNbc5xz6jO+SaPeA@mail.gmail.com
src/backend/access/heap/vacuumlazy.c
src/tools/pgindent/typedefs.list