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

Commit3c5985b

Browse files
committed
Fix bug I introduced in recent patch to make hash joins discard null tuples
immediately: ExecHashGetHashValue failed to restore the caller's memorycontext before taking the failure exit.
1 parenteab6b8b commit3c5985b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/executor/nodeHash.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeHash.c,v 1.110 2007/01/30 01:33:36 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeHash.c,v 1.111 2007/02/22 22:49:27 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -731,7 +731,10 @@ ExecHashGetHashValue(HashJoinTable hashtable,
731731
if (isNull)
732732
{
733733
if (hashtable->hashStrict[i]&& !keep_nulls)
734-
return false;/* cannot match */
734+
{
735+
MemoryContextSwitchTo(oldContext);
736+
return false;/* cannot match */
737+
}
735738
/* else, leave hashkey unmodified, equivalent to hashcode 0 */
736739
}
737740
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp