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

Commit956b91a

Browse files
committed
Cleanups of optimizer.
1 parent2d32d90 commit956b91a

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

‎src/backend/optimizer/path/allpaths.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.20 1998/08/1002:26:20 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.21 1998/08/1004:49:36 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -117,12 +117,11 @@ find_rel_paths(Query *root, List *rels)
117117

118118
sequential_scan_list=lcons(create_seqscan_path(rel),NIL);
119119

120-
rel_index_scan_list=
121-
find_index_paths(root,
122-
rel,
123-
find_relation_indices(root,rel),
124-
rel->clauseinfo,
125-
rel->joininfo);
120+
rel_index_scan_list=find_index_paths(root,
121+
rel,
122+
find_relation_indices(root,rel),
123+
rel->clauseinfo,
124+
rel->joininfo);
126125

127126
or_index_scan_list=create_or_index_paths(root,rel,rel->clauseinfo);
128127

‎src/backend/optimizer/path/indxpath.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.26 1998/08/1002:26:22 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.27 1998/08/1004:49:37 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -602,20 +602,18 @@ match_clause_to_indexkey(RelOptInfo *rel,
602602
*/
603603
if (!join)
604604
{
605-
606605
/*
607606
* Check for standard s-argable clause
608607
*/
609608
if ((rightop&&IsA(rightop,Const))||
610609
(rightop&&IsA(rightop,Param)))
611610
{
612611
restrict_op= ((Oper*) ((Expr*)clause)->oper)->opno;
613-
isIndexable=
614-
(op_class(restrict_op,xclass,index->relam)&&
615-
IndexScanableOperand(leftop,
616-
indexkey,
617-
rel,
618-
index));
612+
isIndexable= (op_class(restrict_op,xclass,index->relam)&&
613+
IndexScanableOperand(leftop,
614+
indexkey,
615+
rel,
616+
index));
619617
}
620618

621619
/*

‎src/backend/optimizer/plan/planmain.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.25 1998/08/1002:26:28 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.26 1998/08/1004:49:39 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -276,6 +276,7 @@ subplanner(Query *root,
276276
* the exhaustive path search.
277277
*/
278278
init_join_info(root->base_rel_list);
279+
279280
final_rel_list=find_paths(root,root->base_rel_list);
280281

281282
if (final_rel_list)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp