1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
7 */
8
9#ifndef _REL_OPTIMIZER_H_
10#define _REL_OPTIMIZER_H_
11
12#include "sql_relation.h"
13#include "sql_mvc.h"
14
15extern sql_rel *rel_optimizer(mvc *sql, sql_rel *rel, int value_based_opt);
16
17extern int exp_joins_rels(sql_exp *e, list *rels);
18
19extern void *name_find_column(sql_rel *rel, const char *rname, const char *name, int pnr, sql_rel **bt);
20extern int exps_unique(mvc *sql, sql_rel *rel, list *exps);
21
22extern sql_rel *rel_dce(mvc *sql, sql_rel *rel);
23
24#endif /*_REL_OPTIMIZER_H_*/
25