foreign table batch inserts

From: Manuel Kniep <m(dot)kniep(at)web(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: foreign table batch inserts
Date: 2016-05-17 21:00:14
Message-ID: 4C716CAC-6E5F-40F9-BA22-6C81CEA205B9@web.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I realized that inserts into foreign tables are only done row by row.
Consider copying data from one local table to a foreign table with

INSERT INTO foreign_table(a,b,c) SELECT a,b,c FROM local_table;

When the foreign server is for example in another datacenter with long latency,
this as an enormous performance trade off.

Wouldn’t it make sense to do the insert batch wise e.g. 100 rows ?
Are there any plans doing that or am I miss something?

regards

Manuel Kniep

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-05-17 21:02:42 Re: seg fault in contrib/bloom
Previous Message Amit Kapila 2016-05-17 20:53:40 Re: Parallel query and temp_file_limit