From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix problems with the "role" GUC and parallel query. |
Date: | 2017-10-29 07:45:08 |
Message-ID: | E1e8iHM-0003Gd-JN@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix problems with the "role" GUC and parallel query.
Without this fix, dropping a role can sometimes result in parallel
query failures in sessions that have used "SET ROLE" to assume the
dropped role, even if that setting isn't active any more.
Report by Pavan Deolasee. Patch by Amit Kapila, reviewed by me.
Discussion: http://postgr.es/m/CABOikdOomRcZsLsLK+Z+qENM1zxyaWnAvFh3MJZzZnnKiF+REg@mail.gmail.com
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/69125c883df30e6232412d35bf7c89b8c3ad1305
Modified Files
--------------
src/backend/access/transam/parallel.c | 11 +++++++++++
src/backend/utils/misc/guc.c | 25 +++++++++----------------
src/include/utils/guc.h | 1 +
src/test/regress/expected/select_parallel.out | 16 ++++++++++++++++
src/test/regress/sql/select_parallel.sql | 11 +++++++++++
5 files changed, 48 insertions(+), 16 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2017-10-29 16:24:59 | pgsql: Allow parallel query for prepared statements with generic plans. |
Previous Message | Robert Haas | 2017-10-29 07:31:09 | pgsql: pg_receivewal: Add --no-sync option. |