pgsql: When restoring GUCs in parallel workers, show an error context. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: When restoring GUCs in parallel workers, show an error context.
Date
Msg-id E1iKuEm-0001As-2I@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c8c55dd5445370c5cad3ae04de02caba7be7073

Modified Files
--------------
src/backend/utils/misc/guc.c | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Fix bug that could try to freeze running multixacts.
Next
From: Thomas Munro
Date:
Subject: pgsql: When restoring GUCs in parallel workers, show an error context.