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

Commit0c99d41

Browse files
committed
Allow hash joins to be interrupted while searching hash table for match.
Per experimentation with a recent example, in which unreasonable amountsof time could elapse before the backend would respond to a query-cancel.This might be something to back-patch, but the patch doesn't apply cleanlybecause this code was rewritten for 9.1. Given the lack of fieldcomplaints I won't bother for now.Cédric Villemain
1 parent596b0c2 commit0c99d41

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/backend/executor/nodeHashjoin.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include"executor/hashjoin.h"
2020
#include"executor/nodeHash.h"
2121
#include"executor/nodeHashjoin.h"
22+
#include"miscadmin.h"
2223
#include"utils/memutils.h"
2324

2425

@@ -262,6 +263,13 @@ ExecHashJoin(HashJoinState *node)
262263

263264
caseHJ_SCAN_BUCKET:
264265

266+
/*
267+
* We check for interrupts here because this corresponds to
268+
* where we'd fetch a row from a child plan node in other
269+
* join types.
270+
*/
271+
CHECK_FOR_INTERRUPTS();
272+
265273
/*
266274
* Scan the selected hash bucket for matches to current outer
267275
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp