Re: [HACKERS] Add support for tuple routing to foreign partitions
Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
From: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>,
Stephen Frost <sfrost@snowman.net>,
Maksim Milyutin <milyutinma@gmail.com>,
Robert Haas <robertmhaas@gmail.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2018-04-04T10:31:09Z
Lists: pgsql-hackers
Attachments
- postgres-fdw-refactoring-4.patch (text/x-diff) patch
- foreign-routing-fdwapi-4.patch (text/x-diff) patch
(2018/04/03 22:01), Etsuro Fujita wrote: > Attached is an updated version of the patch. Patch > foreign-routing-fdwapi-3.patch is created on top of patch > postgres-fdw-refactoring-3.patch and the bug-fix patch [1]. One thing I noticed about patch foreign-routing-fdwapi-3.patch is this bug: the server will crash when copying data into a foreign table that doesn't support the proposed APIs (eg, file_fdw foreign tables). The reason is that the patch doesn't perform CheckValidResultRel before that operation in that case. So I modified the patch as such and added regression tests for that. Attached is an updated version of the patch set: * As before, patch foreign-routing-fdwapi-4.patch is created on top of patch postgres-fdw-refactoring-4.patch and the bug-fix patch [1]. * I revised comments, docs, and regression tests a bit further, but no code changes other than the bug fix. Best regards, Etsuro Fujita [1] https://www.postgresql.org/message-id/5ABA4074.1090500@lab.ntt.co.jp
Commits
-
Allow insert and update tuple routing and COPY for foreign tables.
- 3d956d9562aa 11.0 landed
-
Refactor PgFdwModifyState creation/destruction into separate functions.
- 870d89608e5f 11.0 landed