|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.70 2000/08/06 04:17:47 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.71 2000/09/27 10:41:55 petere Exp $ |
12 | 12 | * |
13 | 13 | * NOTES |
14 | 14 | *Transaction aborts can now occur two ways: |
|
162 | 162 | #include"commands/trigger.h" |
163 | 163 | #include"executor/spi.h" |
164 | 164 | #include"libpq/be-fsstubs.h" |
| 165 | +#include"miscadmin.h" |
165 | 166 | #include"storage/proc.h" |
166 | 167 | #include"storage/sinval.h" |
167 | 168 | #include"utils/inval.h" |
@@ -1088,6 +1089,11 @@ AbortTransaction() |
1088 | 1089 | if (s->state!=TRANS_INPROGRESS) |
1089 | 1090 | elog(NOTICE,"AbortTransaction and not in in-progress state"); |
1090 | 1091 |
|
| 1092 | +/* |
| 1093 | + * Reset user id which might have been changed transiently |
| 1094 | + */ |
| 1095 | +SetUserId(GetSessionUserId()); |
| 1096 | + |
1091 | 1097 | /* ---------------- |
1092 | 1098 | *Tell the trigger manager that this transaction is about to be |
1093 | 1099 | *aborted. |
|