diff options
Diffstat (limited to 'src/backend/optimizer/prep/prepqual.c')
-rw-r--r-- | src/backend/optimizer/prep/prepqual.c | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/src/backend/optimizer/prep/prepqual.c b/src/backend/optimizer/prep/prepqual.c index b8313f56cb7..ae65df8bf47 100644 --- a/src/backend/optimizer/prep/prepqual.c +++ b/src/backend/optimizer/prep/prepqual.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.6 1997/09/08 21:45:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.7 1997/12/18 12:54:15 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -36,42 +36,6 @@ static List *qualcleanup(Expr *qual); static List *remove_ands(Expr *qual); static List *remove_duplicates(List *list); -/* - * preprocess-qualification-- - * Driver routine for modifying the parse tree qualification. - * - * Returns the new base qualification and the existential qualification - * in existentialQualPtr. - * - * XXX right now, update_clauses() does nothing so - * preprocess-qualification simply converts the qual in conjunctive - * normal form (see cnfify() below ) - */ -List * -preprocess_qualification(Expr *qual, List *tlist, List **existentialQualPtr) -{ - List *cnf_qual = cnfify(qual, true); - -/* - List *existential_qual = - update_clauses(intCons(_query_result_relation_, - update_relations(tlist)), - cnf_qual, - _query_command_type_); - if (existential_qual) { - *existentialQualPtr = existential_qual; - return set_difference(cnf_qual, existential_qual); - } else { - *existentialQualPtr = NIL; - return cnf_qual; - } -*/ - /* update_clauses() is not working right now */ - *existentialQualPtr = NIL; - return cnf_qual; - -} - /***************************************************************************** * * CNF CONVERSION ROUTINES @@ -609,27 +573,6 @@ remove_ands(Expr *qual) /***************************************************************************** * - * EXISTENTIAL QUALIFICATIONS - * - *****************************************************************************/ - -/* - * update-relations-- - * Returns the range table indices (i.e., varnos) for all relations which - * are referenced in the target list. - * - */ -#ifdef NOT_USED -static List * -update_relations(List *tlist) -{ - return (NIL); -} - -#endif - -/***************************************************************************** - * * * *****************************************************************************/ |