13 #ifndef POSTGRES_FDW_H
14 #define POSTGRES_FDW_H
109 bool clear,
const char *sql);
113 const char **keywords,
129 List *targetAttrs,
bool doNothing,
List *returningList,
130 List **retrieved_attrs);
133 List *targetAttrs,
List *returningList,
134 List **retrieved_attrs);
142 List **retrieved_attrs);
146 List **retrieved_attrs);
152 List **retrieved_attrs);
155 List **retrieved_attrs);
162 List **retrieved_attrs,
List **params_list);
bool is_builtin(Oid objectId)
void deparseSelectStmtForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *foreignrel, List *tlist, List *remote_conds, List *pathkeys, List **retrieved_attrs, List **params_list)
void reset_transmission_modes(int nestlevel)
void deparseUpdateSql(StringInfo buf, PlannerInfo *root, Index rtindex, Relation rel, List *targetAttrs, List *returningList, List **retrieved_attrs)
PGconn * GetConnection(UserMapping *user, bool will_prep_stmt)
void deparseInsertSql(StringInfo buf, PlannerInfo *root, Index rtindex, Relation rel, List *targetAttrs, bool doNothing, List *returningList, List **retrieved_attrs)
bool is_foreign_expr(PlannerInfo *root, RelOptInfo *baserel, Expr *expr)
int ExtractConnectionOptions(List *defelems, const char **keywords, const char **values)
void classifyConditions(PlannerInfo *root, RelOptInfo *baserel, List *input_conds, List **remote_conds, List **local_conds)
bool is_shippable(Oid objectId, Oid classId, PgFdwRelationInfo *fpinfo)
const char * get_jointype_name(JoinType jointype)
unsigned int GetPrepStmtNumber(PGconn *conn)
Selectivity local_conds_sel
List * ExtractExtensionList(const char *extensionsString, bool warnOnMissing)
Selectivity joinclause_sel
PGresult * pgfdw_get_result(PGconn *conn, const char *query)
int set_transmission_modes(void)
void deparseAnalyzeSql(StringInfo buf, Relation rel, List **retrieved_attrs)
Expr * find_em_expr_for_rel(EquivalenceClass *ec, RelOptInfo *rel)
List * build_tlist_to_deparse(RelOptInfo *foreign_rel)
PGresult * pgfdw_exec_query(PGconn *conn, const char *query)
unsigned int GetCursorNumber(PGconn *conn)
void deparseDirectUpdateSql(StringInfo buf, PlannerInfo *root, Index rtindex, Relation rel, List *targetlist, List *targetAttrs, List *remote_conds, List **params_list, List *returningList, List **retrieved_attrs)
void deparseDirectDeleteSql(StringInfo buf, PlannerInfo *root, Index rtindex, Relation rel, List *remote_conds, List **params_list, List *returningList, List **retrieved_attrs)
void pgfdw_report_error(int elevel, PGresult *res, PGconn *conn, bool clear, const char *sql)
void deparseAnalyzeSizeSql(StringInfo buf, Relation rel)
void ReleaseConnection(PGconn *conn)
static Datum values[MAXATTR]
List * shippable_extensions
struct PgFdwRelationInfo PgFdwRelationInfo
QualCost local_conds_cost
void deparseDeleteSql(StringInfo buf, PlannerInfo *root, Index rtindex, Relation rel, List *returningList, List **retrieved_attrs)
void deparseStringLiteral(StringInfo buf, const char *val)