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

Commited8b7bd

Browse files
committed
Patch from Martin due to changes in joinrels.c
1 parenta454ed5 commited8b7bd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎src/backend/optimizer/geqo/geqo_eval.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: geqo_eval.c,v 1.5 1997/03/01 22:22:21 momjian Exp $
8+
* $Id: geqo_eval.c,v 1.6 1997/03/03 23:26:45 scrappy Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -371,10 +371,18 @@ new_joininfo_list(List *joininfo_list, List *join_relids)
371371
List*xjoininfo=NIL;
372372

373373
foreach (xjoininfo,joininfo_list) {
374+
List*or;
374375
JInfo*joininfo= (JInfo*)lfirst(xjoininfo);
375376

376377
new_otherrels=joininfo->otherrels;
377-
if (nonoverlap_sets(new_otherrels,join_relids)) {
378+
foreach (or,new_otherrels)
379+
{
380+
if (intMember (lfirsti(or),join_relids) )
381+
new_otherrels=lremove ((void*)lfirst(or),new_otherrels);
382+
}
383+
joininfo->otherrels=new_otherrels;
384+
if (new_otherrels!=NIL )
385+
{
378386
other_joininfo=joininfo_member(new_otherrels,
379387
current_joininfo_list);
380388
if(other_joininfo) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp