RE: POC: postgres_fdw insert batching

Поиск
Список
Период
Сортировка
От tsunakawa.takay@fujitsu.com
Тема RE: POC: postgres_fdw insert batching
Дата
Msg-id TYAPR01MB2990DB767E314A72A063EA32FEA10@TYAPR01MB2990.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответ на Re: POC: postgres_fdw insert batching  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Ответы Re: POC: postgres_fdw insert batching  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
> Right. But I think Tom is right this should initialize ri_BatchSize for all the
> resultRelInfo elements, not just the first one. Per the attached patch, which
> resolves the issue both on x86_64 and armv7l for me.

I think Your patch is perfect in the sense that it's ready for the future multi-target DML support.  +1

Just for learning, could anyone tell me what this loop for?  I thought current Postgres's DML supports a single target
table,so it's enough to handle the first element of mtstate->resultRelInfo.  In that sense, Amit-san and I agreed that
wedon't put the if block in the for loop yet.
 


Regards
Takayuki Tsunakawa


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Zhihong Yu
Дата:
Сообщение: Re: POC: postgres_fdw insert batching
Следующее
От: Amit Langote
Дата:
Сообщение: Re: POC: postgres_fdw insert batching