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.
Showing
- contrib/postgres_fdw/deparse.c 17 additions, 38 deletionscontrib/postgres_fdw/deparse.c
- contrib/postgres_fdw/expected/postgres_fdw.out 142 additions, 143 deletionscontrib/postgres_fdw/expected/postgres_fdw.out
- contrib/postgres_fdw/postgres_fdw.c 33 additions, 10 deletionscontrib/postgres_fdw/postgres_fdw.c
- contrib/postgres_fdw/postgres_fdw.h 6 additions, 3 deletionscontrib/postgres_fdw/postgres_fdw.h
- contrib/postgres_fdw/sql/postgres_fdw.sql 7 additions, 8 deletionscontrib/postgres_fdw/sql/postgres_fdw.sql
Loading
Please register or sign in to comment