When restoring GUCs in parallel workers, show an error context.
authorThomas Munro <[email protected]>
Thu, 17 Oct 2019 00:24:50 +0000 (13:24 +1300)
committerThomas Munro <[email protected]>
Thu, 17 Oct 2019 00:50:59 +0000 (13:50 +1300)
commitcdbb3921308ec71e7d090b734a1c8c0bf3269088
treee8c9a613d229fd41661c34e997f33e3836538170
parentc1443eebe5a83449ef24d53eb52f7c176c420f71
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
src/backend/utils/misc/guc.c