Re: Use COPY for populating all pgbench tables - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Use COPY for populating all pgbench tables
Date
Msg-id ZL4HbXHLVAJ8YmxQ@paquier.xyz
Whole thread Raw
In response to Re: Use COPY for populating all pgbench tables  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Use COPY for populating all pgbench tables
List pgsql-hackers
On Sun, Jul 23, 2023 at 08:21:51PM +0900, Michael Paquier wrote:
> Cool.  I have applied the new tests for now to move on with this
> thread.

I have done a few more things on this patch today, including
measurements with a local host and large scaling numbers.  One of my
hosts was taking for instance around 36.8s with scale=500 using the
INSERTs and 36.5s with the COPY when loading data (average of 4
runs) with -I dtg.

Greg's upthread point is true as well that for high latency the
server-side generation is the most adapted option, but I don't see a
reason to not switch to a COPY as this option is hidden behind -I,
just for the sake of improving the default option set.  So, at the
end, applied.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Synchronizing slots from primary to standby
Next
From: Amit Kapila
Date:
Subject: Re: logical decoding and replication of sequences, take 2