diff options
| author | Tom Lane | 2005-08-17 22:14:34 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-08-17 22:14:34 +0000 |
| commit | f8d0a82bf9501e1c5efe40e0f55d0c063858f7b4 (patch) | |
| tree | 4321c1bfc1db0765273c00ba8ef3531f6ab512c7 /src/include/miscadmin.h | |
| parent | 63f850cd4dd3894cf9990f899f2792fae77fdfb8 (diff) | |
Avoid an Assert failure if OuterUserId hasn't been set yet during
AbortTransaction. This can happen if a backend's InitPostgres transaction
fails (eg, because the given username is invalid). Per Alvaro.
Diffstat (limited to 'src/include/miscadmin.h')
| -rw-r--r-- | src/include/miscadmin.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 5697a691e63..04cab28e39d 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.178 2005/07/25 22:12:34 tgl Exp $ + * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.179 2005/08/17 22:14:34 tgl Exp $ * * NOTES * some of the information in this file should be moved to other files. @@ -235,6 +235,7 @@ extern Oid GetOuterUserId(void); extern Oid GetSessionUserId(void); extern void InitializeSessionUserId(const char *rolename); extern void InitializeSessionUserIdStandalone(void); +extern void AtAbort_UserId(void); extern void SetSessionAuthorization(Oid userid, bool is_superuser); extern Oid GetCurrentRoleId(void); extern void SetCurrentRoleId(Oid roleid, bool is_superuser); |
