blob: d26903fc0856d407ad20c4b67e35489829ae9db0 [file] [log] [blame]
/*-------------------------------------------------------------------------
*
* orca.h
* prototypes for the ORCA query planner
*
*
* Portions Copyright (c) 2010-Present, VMware, Inc. or its affiliates
* Portions Copyright (c) 2005-2009, Greenplum inc
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* src/include/optimizer/orca.h
*
*-------------------------------------------------------------------------
*/
#ifndef ORCA_H
#define ORCA_H
#include "pg_config.h"
#ifdef USE_ORCA
extern PlannedStmt * optimize_query(Query *parse, int cursorOptions, ParamListInfo boundParams);
extern Node *transformGroupedWindows(Node *node, void *context);
// plan_hint_hook generates HintState by parsing a Query.
typedef void *(*plan_hint_hook_type) (Query *parse);
extern PGDLLIMPORT plan_hint_hook_type plan_hint_hook;
#endif
#endif /* ORCA_H */