]> 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:44:37 +0000 (13:14 +0530)
commitf74f871b80a13ef72b19e3d829a109f8df0df792
tree4977690000538348b2192c1428659adb8a47d2fa
parent21daada10ebf444fb1fc06a705fb22b890867083
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