git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1aa1827)
INDEXSCAN_PATCH changes: should work for (Param OP VAR) too
1997年1月22日 06:30:57 +0000 (06:30 +0000)
1997年1月22日 06:30:57 +0000 (06:30 +0000)
(but I didn't test FUNC OP PARAM and PARAM OP FUNC - no time)


diff --git a/src/backend/optimizer/util/clauses.c b/src/backend/optimizer/util/clauses.c
index b690b0fdb0f4ab9e6a3928bf1dd6f692e5d4cb4f..c3e7d30bb13162cbd030a156f0ea31a3b5487863 100644 (file)
--- a/src/backend/optimizer/util/clauses.c
+++ b/src/backend/optimizer/util/clauses.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.5 1996年11月30日 17:48:52 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.6 1997年01月22日 06:30:57 vadim Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -649,6 +649,14 @@ get_relattval(Node *clause,
*constval = 0;
*flag = (_SELEC_NOT_CONSTANT_);
}
+#ifdef INDEXSCAN_PATCH
+ } else if (is_opclause(clause) && IsA(right,Var) && IsA(left,Param)) {
+ /* ...And here... - vadim 01/22/97 */
+ *relid = right->varno;
+ *attno = right->varattno;
+ *constval = 0;
+ *flag = (_SELEC_NOT_CONSTANT_);
+#endif
} else {
/* One or more of the operands are expressions
* (e.g., oper clauses)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /