]> granicus.if.org Git - postgresql/commit
When restoring GUCs in parallel workers, show an error context.
authorThomas Munro <tmunro@postgresql.org>
Thu, 17 Oct 2019 00:24:50 +0000 (13:24 +1300)
committerThomas Munro <tmunro@postgresql.org>
Thu, 17 Oct 2019 00:58:58 +0000 (13:58 +1300)
commit6737111a7ae1fac6b4781250be7c0719c5a7ed48
tree0e6aa73116bd8aa6a656bbb048b17728df7d1539
parent6f1e336de01003e4005a9c00f6c25c94ccd4dd34
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