When restoring GUCs in parallel workers, show an error context.

Thomas Munro <tmunro@postgresql.org>

Commit: fd5ffa425dfbc66db82980e7eb17a28c11c7fd37
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2019-10-17T00:52:59Z
Releases: 9.6.16
When restoring GUCs in parallel workers, show an error context.

Otherwise it can be hard to see where an error is coming from, when
the parallel worker sets all the GUCs that it received from the
leader.  Bug #15726.  Back-patch to 9.5, where RestoreGUCState()
appeared.

Reported-by: Tiago Anastacio
Reviewed-by: Daniel Gustafsson, Tom Lane
Discussion: https://postgr.es/m/15726-6d67e4fa14f027b3%40postgresql.org

Files

PathChange+/−
src/backend/utils/misc/guc.c modified +29 −0

Discussion