Thread: pgsql: Pass down current user ID to AddRoleMems and DelRoleMems.

pgsql: Pass down current user ID to AddRoleMems and DelRoleMems.

From
Robert Haas
Date:
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(-)