pgsql: Pass down current user ID to AddRoleMems and DelRoleMems. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Pass down current user ID to AddRoleMems and DelRoleMems.
Date
Msg-id E1pDW1H-002D2L-OK@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Pass down current user ID to AddRoleMems and DelRoleMems.

This is just refactoring; there should be no functonal change. It
might have the effect of slightly reducing the number of calls to
GetUserId(), but the real point is to facilitate future work in
this area.

Patch by me, reviewed by Mark Dilger.

Discussion: http://postgr.es/m/CA+TgmobFzTLkLwOquFrAcdsWBsOWDr-_H-jw+qBvfx-wSzMwDA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/39cffe95f2c5d77a268db9f04c2b2aaf2294ad76

Modified Files
--------------
src/backend/commands/user.c | 41 ++++++++++++++++++++++-------------------
1 file changed, 22 insertions(+), 19 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Refactor permissions-checking for role grants.
Next
From: Thomas Munro
Date:
Subject: pgsql: Use unnamed POSIX semaphores on Cygwin.