//--------------------------------------------------------------------------- // // funcs.h // API for invoking optimizer using GPDB udfs // // Copyright (c) 2019-Present VMware, Inc. or its affiliates. // //--------------------------------------------------------------------------- #ifndef GPOPT_funcs_H #define GPOPT_funcs_H extern "C" { #include "postgres.h" #include "fmgr.h" #include "utils/builtins.h" extern Datum DisableXform(PG_FUNCTION_ARGS); extern Datum EnableXform(PG_FUNCTION_ARGS); extern Datum LibraryVersion(); /* defined in pg_orca.cpp; initializes GPOPT (xform factory etc.) if the * planner hook has not already done so in this backend */ extern void pg_orca_ensure_initialized(void); } #endif // GPOPT_funcs_H