]> 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:57:23 +0000 (13:57 +1300)
commit89a3cdb32a9e1a6545abd43ef385e6bb91d66cb9
tree9a63c859b924af9d9c4cd06507655de872b3df07
parent583d86f92aabdccb569e5d1faa3284f717bb1d64
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