Re: Multi Inserts in CREATE TABLE AS - revived patch
От | Bharath Rupireddy |
---|---|
Тема | Re: Multi Inserts in CREATE TABLE AS - revived patch |
Дата | |
Msg-id | CALj2ACWMySD_x1MkuQpYLKOZb4eyfNkhHQfPQx7_v-sr5_2JmQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Multi Inserts in CREATE TABLE AS - revived patch (Paul Guo <guopa@vmware.com>) |
Ответы |
Re: Multi Inserts in CREATE TABLE AS - revived patch
|
Список | pgsql-hackers |
On Tue, Nov 10, 2020 at 3:47 PM Paul Guo <guopa@vmware.com> wrote: > > Thanks for doing this. There might be another solution - use raw insert interfaces (i.e. raw_heap_insert()). > Attached is the test (not formal) patch that verifies this idea. raw_heap_insert() writes the page into the > table files directly and also write the FPI xlog when the tuples filled up the whole page. This seems be > more efficient. > Thanks. Will the new raw_heap_insert() APIs scale well (i.e. extend the table parallelly) with parallelism? The existing table_multi_insert() API scales well, see, for instance, the benefit with parallel copy[1] and parallel multi inserts in CTAS[2]. [1] - https://www.postgresql.org/message-id/CALj2ACWeQVd-xoQZHGT01_33St4xPoZQibWz46o7jW1PE3XOqQ%40mail.gmail.com [2] - https://www.postgresql.org/message-id/CALj2ACWFq6Z4_jd9RPByURB8-Y8wccQWzLf%2B0-Jg%2BKYT7ZO-Ug%40mail.gmail.com With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: