diff options
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.h b/contrib/postgres_fdw/postgres_fdw.h index 940b81a7398..236a60b4898 100644 --- a/contrib/postgres_fdw/postgres_fdw.h +++ b/contrib/postgres_fdw/postgres_fdw.h @@ -21,9 +21,11 @@ #include "libpq-fe.h" /* in connection.c */ -extern PGconn *GetConnection(ForeignServer *server, UserMapping *user); +extern PGconn *GetConnection(ForeignServer *server, UserMapping *user, + bool will_prep_stmt); extern void ReleaseConnection(PGconn *conn); extern unsigned int GetCursorNumber(PGconn *conn); +extern unsigned int GetPrepStmtNumber(PGconn *conn); extern void pgfdw_report_error(int elevel, PGresult *res, bool clear, const char *sql); @@ -39,14 +41,20 @@ extern void classifyConditions(PlannerInfo *root, List **param_conds, List **local_conds, List **param_numbers); -extern void deparseSimpleSql(StringInfo buf, +extern void deparseSelectSql(StringInfo buf, PlannerInfo *root, RelOptInfo *baserel, - List *local_conds); + Bitmapset *attrs_used); extern void appendWhereClause(StringInfo buf, - bool has_where, + PlannerInfo *root, List *exprs, - PlannerInfo *root); + bool is_first); +extern void deparseInsertSql(StringInfo buf, PlannerInfo *root, Index rtindex, + List *targetAttrs, List *returningList); +extern void deparseUpdateSql(StringInfo buf, PlannerInfo *root, Index rtindex, + List *targetAttrs, List *returningList); +extern void deparseDeleteSql(StringInfo buf, PlannerInfo *root, Index rtindex, + List *returningList); extern void deparseAnalyzeSizeSql(StringInfo buf, Relation rel); extern void deparseAnalyzeSql(StringInfo buf, Relation rel); |