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

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: When restoring GUCs in parallel workers, show an error context.
Date: 2019-10-17 01:06:40
Message-ID: E1iKuFU-0001Ca-Kz@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/89a3cdb32a9e1a6545abd43ef385e6bb91d66cb9

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

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2019-10-17 01:06:56 pgsql: When restoring GUCs in parallel workers, show an error context.
Previous Message Thomas Munro 2019-10-17 01:06:25 pgsql: When restoring GUCs in parallel workers, show an error context.