]> granicus.if.org Git - postgresql/commit
Fix contrib/postgres_fdw's handling of column defaults.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Mar 2013 22:58:13 +0000 (18:58 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Mar 2013 22:58:13 +0000 (18:58 -0400)
commit50c19fc76f05124b80fc4c5d20a359c5dbf017af
tree8a45e85fb18c599fbd03702ca0d47cdf6aaeecb8
parenta0c6dfeecfcc860858b04617a9d96eaee1d82c66
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.
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.h
contrib/postgres_fdw/sql/postgres_fdw.sql