Improve vacuum error context handling.

Amit Kapila <akapila@postgresql.org>

Commit: 83fa48c8cd26c9a8171a85e786bb6ae1c5b04139
Author: Amit Kapila <akapila@postgresql.org>
Date: 2020-07-01T02:36:00Z
Releases: 13.0
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

Files

PathChange+/−
src/backend/access/heap/vacuumlazy.c modified +72 −51
src/tools/pgindent/typedefs.list modified +1 −0

Discussion