mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user