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

Commitfb24bfa

Browse files
committed
INDEXSCAN_PATCH changes: should work for (Param OP VAR) too
(but I didn't test FUNC OP PARAM and PARAM OP FUNC - no time)
1 parent1aa1827 commitfb24bfa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎src/backend/optimizer/util/clauses.c

Lines changed: 9 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/util/clauses.c,v 1.5 1996/11/30 17:48:52 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.6 1997/01/22 06:30:57 vadim Exp $
1111
*
1212
* HISTORY
1313
* AUTHORDATEMAJOR EVENT
@@ -649,6 +649,14 @@ get_relattval(Node *clause,
649649
*constval=0;
650650
*flag= (_SELEC_NOT_CONSTANT_);
651651
}
652+
#ifdefINDEXSCAN_PATCH
653+
}elseif (is_opclause(clause)&&IsA(right,Var)&&IsA(left,Param)) {
654+
/* ...And here... - vadim 01/22/97 */
655+
*relid=right->varno;
656+
*attno=right->varattno;
657+
*constval=0;
658+
*flag= (_SELEC_NOT_CONSTANT_);
659+
#endif
652660
}else {
653661
/* One or more of the operands are expressions
654662
* (e.g., oper clauses)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp