mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Replace functional-index facility with expressional indexes. Any column
of an index can now be a computed expression instead of a simple variable. Restrictions on expressions are the same as for predicates (only immutable functions, no sub-selects). This fixes problems recently introduced with inlining SQL functions, because the inlining transformation is applied to both expression trees so the planner can still match them up. Along the way, improve efficiency of handling index predicates (both predicates and index expressions are now cached by the relcache) and fix 7.3 oversight that didn't record dependencies of predicate expressions.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.136 2003/04/29 22:13:09 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.137 2003/05/28 16:03:56 tgl Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@@ -132,28 +132,6 @@ get_rightop(Expr *clause)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* FUNCTION clause functions
|
||||
*****************************************************************************/
|
||||
|
||||
/*
|
||||
* make_funcclause
|
||||
* Creates a function clause given its function info and argument list.
|
||||
*/
|
||||
Expr *
|
||||
make_funcclause(Oid funcid, Oid funcresulttype, bool funcretset,
|
||||
CoercionForm funcformat, List *funcargs)
|
||||
{
|
||||
FuncExpr *expr = makeNode(FuncExpr);
|
||||
|
||||
expr->funcid = funcid;
|
||||
expr->funcresulttype = funcresulttype;
|
||||
expr->funcretset = funcretset;
|
||||
expr->funcformat = funcformat;
|
||||
expr->args = funcargs;
|
||||
return (Expr *) expr;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* NOT clause functions
|
||||
*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user