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

Commit9f6df6c

Browse files
committed
Fix oversight: there's no reason for PG_TRY to use sigsetjmp(buf,1)
since we don't change the signal mask during normal backend operations.Use sigsetjmp(buf,0) to avoid many unnecessary kernel calls.
1 parent914e177 commit9f6df6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/include/utils/elog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.76 2004/09/05 03:42:13 tgl Exp $
10+
* $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.77 2004/09/16 21:59:17 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -204,7 +204,7 @@ extern DLLIMPORT ErrorContextCallback *error_context_stack;
204204
sigjmp_buf *save_exception_stack = PG_exception_stack; \
205205
ErrorContextCallback *save_context_stack = error_context_stack; \
206206
sigjmp_buf local_sigjmp_buf; \
207-
if (sigsetjmp(local_sigjmp_buf,1) == 0) \
207+
if (sigsetjmp(local_sigjmp_buf,0) == 0) \
208208
{ \
209209
PG_exception_stack = &local_sigjmp_buf
210210

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp