On Mon, Feb 1, 2016 at 5:26 AM, Etsuro Fujita <fujita.ets...@lab.ntt.co.jp> wrote: > I don't think the data is referenced by the AFTER ROW DELETE triggers.
Why do you think that? And why would DELETE triggers be different from UPDATE triggers, which do something similar? I looked up the history of this code and it was introduced in 7cbe57c3, which added support for triggers on foreign tables. Noah did that commit and he's rarely wrong about stuff like this, so I suspect you may be missing something. One thing to consider is whether the version of the row that finally gets deleted is necessarily the same as the version originally selected from the remote side; e.g. suppose the remote side has triggers, too. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (firstname.lastname@example.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers