On Wed, May 10, 2017 at 6:50 AM, Etsuro Fujita <fujita.ets...@lab.ntt.co.jp> wrote: > I started working on this. I agree that the changes made in > make_modifytable would be unacceptable, but I'd vote for Amit's idea of > passing a modified PlannerInfo to PlanForeignModify so that the FDW can do > query planning for INSERT into a foreign partition in the same way as for > INSERT into a non-partition foreign table. (Though, I think we should > generate a more-valid-looking working-copy of the PlannerInfo which has > Query with the foreign partition as target.) I'm not sure it's a good idea > to add a new FDW API or modify the existing one such as PlanForeignModify > for this purpose.
Thanks for working on this, but I think it would be better to start a new thread for this discussion. And probably also for any other issues that come up. This thread has gotten so long that between the original discussion and commit of the patch and discussion of multiple follow-on commits and patches that it's very hard to follow. -- 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