diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-12 18:58:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-12 18:58:13 -0400 |
commit | 50c19fc76f05124b80fc4c5d20a359c5dbf017af (patch) | |
tree | 8a45e85fb18c599fbd03702ca0d47cdf6aaeecb8 /contrib/postgres_fdw/postgres_fdw.h | |
parent | a0c6dfeecfcc860858b04617a9d96eaee1d82c66 (diff) | |
download | postgresql-50c19fc76f05124b80fc4c5d20a359c5dbf017af.tar.gz postgresql-50c19fc76f05124b80fc4c5d20a359c5dbf017af.zip |
Fix contrib/postgres_fdw's handling of column defaults.
Adopt the position that only locally-defined defaults matter. Any defaults
defined in the remote database do not affect insertions performed through
a foreign table (unless they are for columns not known to the foreign
table). While it'd arguably be more useful to permit remote defaults to be
used, making that work in a consistent fashion requires far more work than
seems possible for 9.3.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.h b/contrib/postgres_fdw/postgres_fdw.h index 9149aa186f7..fc0e7b61fde 100644 --- a/contrib/postgres_fdw/postgres_fdw.h +++ b/contrib/postgres_fdw/postgres_fdw.h @@ -53,11 +53,14 @@ extern void appendWhereClause(StringInfo buf, PlannerInfo *root, List *exprs, bool is_first); -extern void deparseInsertSql(StringInfo buf, PlannerInfo *root, Index rtindex, +extern void deparseInsertSql(StringInfo buf, PlannerInfo *root, + Index rtindex, Relation rel, List *targetAttrs, List *returningList); -extern void deparseUpdateSql(StringInfo buf, PlannerInfo *root, Index rtindex, +extern void deparseUpdateSql(StringInfo buf, PlannerInfo *root, + Index rtindex, Relation rel, List *targetAttrs, List *returningList); -extern void deparseDeleteSql(StringInfo buf, PlannerInfo *root, Index rtindex, +extern void deparseDeleteSql(StringInfo buf, PlannerInfo *root, + Index rtindex, Relation rel, List *returningList); extern void deparseAnalyzeSizeSql(StringInfo buf, Relation rel); extern void deparseAnalyzeSql(StringInfo buf, Relation rel); |