diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-25 22:12:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-25 22:12:34 +0000 |
commit | e5d6b91220d69c87f44e1ce0095516946abc6d6c (patch) | |
tree | 004dd158466d5b8e9322a8a78bd5f68d0253af4b /src/backend/access/transam/xact.c | |
parent | f5df006a04bdaed8ca8e7595bdd5c7c037d65dab (diff) | |
download | postgresql-e5d6b91220d69c87f44e1ce0095516946abc6d6c.tar.gz postgresql-e5d6b91220d69c87f44e1ce0095516946abc6d6c.zip |
Add SET ROLE. This is a partial commit of Stephen Frost's recent patch;
I'm still working on the has_role function and information_schema changes.
Diffstat (limited to 'src/backend/access/transam/xact.c')
-rw-r--r-- | src/backend/access/transam/xact.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index c75da3d432c..ee33030292f 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.210 2005/07/13 22:46:09 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.211 2005/07/25 22:12:31 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1865,7 +1865,7 @@ AbortTransaction(void) /* * Reset user id which might have been changed transiently. We cannot - * use s->currentUser, but must get the session userid from + * use s->currentUser, but must get the session outer-level userid from * miscinit.c. * * (Note: it is not necessary to restore session authorization here @@ -1874,7 +1874,7 @@ AbortTransaction(void) * DEFINER function could send control here with the wrong current * userid.) */ - SetUserId(GetSessionUserId()); + SetUserId(GetOuterUserId()); /* * do abort processing |