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

Commitc1abe6c

Browse files
committed
Wire up query cancel interrupt for walsender backends.
This allows to cancel commands run over replication connections. Whileit might have some use before v10, it has become important now thatnormal SQL commands are allowed in database connected walsenderconnections.Author: Petr JelinekReviewed-By: Andres Freund, Michael PaquierDiscussion:https://postgr.es/m/7966f454-7cd7-2b0c-8b70-cdca9d5a8c97@2ndquadrant.com
1 parent6e1dd27 commitc1abe6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/replication/walsender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,7 @@ WalSndSignals(void)
29292929
/* Set up signal handlers */
29302930
pqsignal(SIGHUP,PostgresSigHupHandler);/* set flag to read config
29312931
* file */
2932-
pqsignal(SIGINT,SIG_IGN);/*not used */
2932+
pqsignal(SIGINT,StatementCancelHandler);/*query cancel */
29332933
pqsignal(SIGTERM,die);/* request shutdown */
29342934
pqsignal(SIGQUIT,quickdie);/* hard crash time */
29352935
InitializeTimeouts();/* establishes SIGALRM handler */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp