]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix a problem with parallel workers being unable to restore role.
authorRobert Haas <rhaas@postgresql.org>
Fri, 16 Oct 2015 15:37:19 +0000 (11:37 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 16 Oct 2015 15:40:03 +0000 (11:40 -0400)
commit73d71cde5751e06d372431178e740835284eb132
treec4fd624ce4f26126ed60dfec29b7a0c353947f8f
parent14129d1c9e2d3afa064651012a55c9c84aa6821a
Fix a problem with parallel workers being unable to restore role.

check_role() tries to verify that the user has permission to become the
requested role, but this is inappropriate in a parallel worker, which
needs to exactly recreate the master's authorization settings.  So skip
the check in that case.

This fixes a bug in commit 924bcf4f16d54c55310b28f77686608684734f42.
src/backend/access/transam/parallel.c
src/backend/commands/variable.c
src/include/access/parallel.h