Skip to content

Commit 9f6df6c

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 parent 914e177 commit 9f6df6c

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy