Re: Batch insert in CTAS/MatView code - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Batch insert in CTAS/MatView code
Date
Msg-id be75c9bc-89a7-4227-cfb1-690c005cf36b@iki.fi
Whole thread Raw
In response to Re: Batch insert in CTAS/MatView code  (Paul Guo <pguo@pivotal.io>)
Responses Re: Batch insert in CTAS/MatView code
List pgsql-hackers
On 17/06/2019 15:53, Paul Guo wrote:
> I noticed that to do batch insert, we might need additional memory copy
> sometimes comparing with "single insert"
> (that should be the reason that we previously saw a bit regressions) so a
> good solution seems to fall back
> to "single insert" if the tuple length is larger than a threshold. I set
> this as 2000 after quick testing.

Where does the additional memory copy come from? Can we avoid doing it 
in the multi-insert case?

- Heikki



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] CLUSTER command progress monitor
Next
From: Corey Huinker
Date:
Subject: Re: \describe*