postgresql/contrib/postgres_fdw
Tom Lane dc3eb56383 Improve updatability checking for views and foreign tables.
Extend the FDW API (which we already changed for 9.3) so that an FDW can
report whether specific foreign tables are insertable/updatable/deletable.
The default assumption continues to be that they're updatable if the
relevant executor callback function is supplied by the FDW, but finer
granularity is now possible.  As a test case, add an "updatable" option to
contrib/postgres_fdw.

This patch also fixes the information_schema views, which previously did
not think that foreign tables were ever updatable, and fixes
view_is_auto_updatable() so that a view on a foreign table can be
auto-updatable.

initdb forced due to changes in information_schema views and the functions
they rely on.  This is a bit unfortunate to do post-beta1, but if we don't
change this now then we'll have another API break for FDWs when we do
change it.

Dean Rasheed, somewhat editorialized on by Tom Lane
2013-06-12 17:53:33 -04:00
..
expected Improve updatability checking for views and foreign tables. 2013-06-12 17:53:33 -04:00
sql Improve updatability checking for views and foreign tables. 2013-06-12 17:53:33 -04:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
deparse.c Avoid retrieving dummy NULL columns in postgres_fdw. 2013-03-22 00:31:11 -04:00
Makefile Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
option.c Improve updatability checking for views and foreign tables. 2013-06-12 17:53:33 -04:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Improve updatability checking for views and foreign tables. 2013-06-12 17:53:33 -04:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00