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

Commit82748bc

Browse files
committed
Reduce error level of ROLLBACK outside a transaction from WARNING to
NOTICE.
1 parenta341b87 commit82748bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.251 2007/09/11 03:28:05 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.252 2007/11/10 14:36:44 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -3025,7 +3025,7 @@ UserAbortTransactionBlock(void)
30253025
* default state.
30263026
*/
30273027
caseTBLOCK_STARTED:
3028-
ereport(WARNING,
3028+
ereport(NOTICE,
30293029
(errcode(ERRCODE_NO_ACTIVE_SQL_TRANSACTION),
30303030
errmsg("there is no transaction in progress")));
30313031
s->blockState=TBLOCK_ABORT_PENDING;

‎src/test/regress/expected/errors.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ ERROR: column "oid" of relation "stud_emp" already exists
116116

117117
-- not in a xact
118118
abort;
119-
WARNING: there is no transaction in progress
119+
NOTICE: there is no transaction in progress
120120
-- not in a xact
121121
end;
122122
WARNING: there is no transaction in progress

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp