diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-07-10 15:01:31 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-07-10 15:01:43 -0400 |
commit | 59efda3e50ca4de6a9d5aa4491464e22b6329b1e (patch) | |
tree | 23a2fe16ebc11ad9f95ef3f70c563084d6ca4007 /contrib/postgres_fdw/deparse.c | |
parent | 6a605cd6bd9f689b35676623add0de9b90978bf1 (diff) | |
download | postgresql-59efda3e50ca4de6a9d5aa4491464e22b6329b1e.tar.gz postgresql-59efda3e50ca4de6a9d5aa4491464e22b6329b1e.zip |
Implement IMPORT FOREIGN SCHEMA.
This command provides an automated way to create foreign table definitions
that match remote tables, thereby reducing tedium and chances for error.
In this patch, we provide the necessary core-server infrastructure and
implement the feature fully in the postgres_fdw foreign-data wrapper.
Other wrappers will throw a "feature not supported" error until/unless
they are updated.
Ronan Dunklau and Michael Paquier, additional work by me
Diffstat (limited to 'contrib/postgres_fdw/deparse.c')
-rw-r--r-- | contrib/postgres_fdw/deparse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/deparse.c b/contrib/postgres_fdw/deparse.c index 322138dd0cd..2045774f24f 100644 --- a/contrib/postgres_fdw/deparse.c +++ b/contrib/postgres_fdw/deparse.c @@ -116,7 +116,6 @@ static void deparseReturningList(StringInfo buf, PlannerInfo *root, static void deparseColumnRef(StringInfo buf, int varno, int varattno, PlannerInfo *root); static void deparseRelation(StringInfo buf, Relation rel); -static void deparseStringLiteral(StringInfo buf, const char *val); static void deparseExpr(Expr *expr, deparse_expr_cxt *context); static void deparseVar(Var *node, deparse_expr_cxt *context); static void deparseConst(Const *node, deparse_expr_cxt *context); @@ -1160,7 +1159,7 @@ deparseRelation(StringInfo buf, Relation rel) /* * Append a SQL string literal representing "val" to buf. */ -static void +void deparseStringLiteral(StringInfo buf, const char *val) { const char *valptr; |