]> granicus.if.org Git - postgresql/commit
Fix problems with the "role" GUC and parallel query.
authorRobert Haas <rhaas@postgresql.org>
Sun, 29 Oct 2017 07:28:40 +0000 (12:58 +0530)
committerRobert Haas <rhaas@postgresql.org>
Sun, 29 Oct 2017 07:28:40 +0000 (12:58 +0530)
commit846fcc85167c417873865099d70068ed85f758a8
treeb89a7bd72c0d2ff31bcd0940d893586e9510144c
parent5f3971291fc231bb65a38198b1bcb1c29ef63108
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
src/backend/access/transam/parallel.c
src/backend/utils/misc/guc.c
src/include/utils/guc.h
src/test/regress/expected/select_parallel.out
src/test/regress/sql/select_parallel.sql