postgresql/contrib/postgres_fdw
Noah Misch 7cbe57c34d Offer triggers on foreign tables.
This covers all the SQL-standard trigger types supported for regular
tables; it does not cover constraint triggers.  The approach for
acquiring the old row mirrors that for view INSTEAD OF triggers.  For
AFTER ROW triggers, we spool the foreign tuples to a tuplestore.

This changes the FDW API contract; when deciding which columns to
populate in the slot returned from data modification callbacks, writable
FDWs will need to check for AFTER ROW triggers in addition to checking
for a RETURNING clause.

In support of the feature addition, refactor the TriggerFlags bits and
the assembly of old tuples in ModifyTable.

Ronan Dunklau, reviewed by KaiGai Kohei; some additional hacking by me.
2014-03-23 02:16:34 -04:00
..
expected Offer triggers on foreign tables. 2014-03-23 02:16:34 -04:00
sql Offer triggers on foreign tables. 2014-03-23 02:16:34 -04:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c Improve connection-failure error handling in contrib/postgres_fdw. 2014-02-03 21:30:20 -05:00
deparse.c Offer triggers on foreign tables. 2014-03-23 02:16:34 -04:00
Makefile Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
option.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Offer triggers on foreign tables. 2014-03-23 02:16:34 -04:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h Fix contrib/postgres_fdw to handle multiple join conditions properly. 2014-03-07 16:36:40 -05:00