Use foreign data wraper routines to replace external insert in COPY FROM. (#10169)
Enable Copy Form for foreign tables to remove the external table dependency in copy.c. This commit backports small part of the commit 3d956d95 from Postgres. Remove the fileam.h including from non-external code. So we can extract external table into extension later. Move function external_set_env_vars to URL component since extvar_t is defined in url.h. Implement external table fdw's BeginForeignInsert and EndForeignInsert, so COPY FROM will go through the fdw routine instead of the external insert. Reviewed-by: NHeikki Linnakangas <heikki.linnakangas@iki.fi>
Showing
想要评论请 注册 或 登录