fix_hardtokill_hash.patch

text/x-patch

Filename: fix_hardtokill_hash.patch
Type: text/x-patch
Part: 0
Message: Re: [PERFORM] Hash Anti Join performance degradation

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/backend/executor/nodeHashjoin.c 2 0
diff --git a/src/backend/executor/nodeHashjoin.c b/src/backend/executor/nodeHashjoin.c
index 26da3b2..09c56f9 100644
--- a/src/backend/executor/nodeHashjoin.c
+++ b/src/backend/executor/nodeHashjoin.c
@@ -14,6 +14,7 @@
  */
 
 #include "postgres.h"
+#include "miscadmin.h"
 
 #include "executor/executor.h"
 #include "executor/hashjoin.h"
@@ -108,6 +109,7 @@ ExecHashJoin(HashJoinState *node)
 	 */
 	for (;;)
 	{
+		CHECK_FOR_INTERRUPTS();
 		switch (node->hj_JoinState)
 		{
 			case HJ_BUILD_HASHTABLE: