Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64610a8

Browse files
committed
Reset current user id to session user id during transaction abort
1 parent76f286b commit64610a8

File tree

1 file changed

+7
-1
lines changed
  • src/backend/access/transam

1 file changed

+7
-1
lines changed

‎src/backend/access/transam/xact.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* 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 $
1212
*
1313
* NOTES
1414
*Transaction aborts can now occur two ways:
@@ -162,6 +162,7 @@
162162
#include"commands/trigger.h"
163163
#include"executor/spi.h"
164164
#include"libpq/be-fsstubs.h"
165+
#include"miscadmin.h"
165166
#include"storage/proc.h"
166167
#include"storage/sinval.h"
167168
#include"utils/inval.h"
@@ -1088,6 +1089,11 @@ AbortTransaction()
10881089
if (s->state!=TRANS_INPROGRESS)
10891090
elog(NOTICE,"AbortTransaction and not in in-progress state");
10901091

1092+
/*
1093+
* Reset user id which might have been changed transiently
1094+
*/
1095+
SetUserId(GetSessionUserId());
1096+
10911097
/* ----------------
10921098
*Tell the trigger manager that this transaction is about to be
10931099
*aborted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp