postgresql/src/bin
Michael Paquier e35cc3b3f2 pgbench: Use COPY for client-side data generation
This commit switches the client-side data generation from INSERT queries
to COPY for the two tables pgbench_branches and pgbench_tellers.
pgbench_accounts was already using COPY.

COPY is a better interface for bulk loading or high latency connections
(this point can be countered with the option for server-side data
generation, still client-side is the default), and measurements have
proved that using it for these two other tables can lead to improvements
during initialization.  I did not notice slowdowns at large scale
numbers on a local setup, either, most of the work happening for the
accounts table.

Previously COPY was only used for the pgbench_accounts table because the
amount of data was much larger than the two other tables.  The code is
refactored so as all three tables use the same code path to execute the
COPY queries, with a callback to build data rows.

Author: Tristan Partin
Discussion: https://postgr.es/m/CSTU5P82ONZ1.19XFUGHMXHBRY@c3po
2023-07-24 13:48:22 +09:00
..
initdb Clean up command argument assembly 2023-07-05 07:15:23 +02:00
pg_amcheck Handle DROP DATABASE getting interrupted 2023-07-13 13:03:28 -07:00
pg_archivecleanup pg_archivecleanup: Add --clean-backup-history 2023-07-19 13:41:22 +09:00
pg_basebackup Fix pg_recvlogical upon signal termination 2023-07-20 10:22:46 +09:00
pg_checksums Translation updates 2023-05-22 12:44:31 +02:00
pg_config Translation updates 2023-05-22 12:44:31 +02:00
pg_controldata Translation updates 2023-05-22 12:44:31 +02:00
pg_ctl Simplify option handling in pg_ctl. 2023-07-14 12:35:54 -07:00
pg_dump Handle DROP DATABASE getting interrupted 2023-07-13 13:03:28 -07:00
pg_resetwal Translation updates 2023-05-22 12:44:31 +02:00
pg_rewind Translation updates 2023-05-22 12:44:31 +02:00
pg_test_fsync Remove wal_sync_method=fsync_writethrough on Windows. 2023-07-14 12:30:13 +12:00
pg_test_timing Translation updates 2023-05-22 12:44:31 +02:00
pg_upgrade pg_upgrade: include additional detail in cluster check 2023-07-20 14:55:50 +02:00
pg_verifybackup Translation updates 2023-05-22 12:44:31 +02:00
pg_waldump pg_waldump: Add test case for notice message 2023-07-05 10:50:16 +02:00
pgbench pgbench: Use COPY for client-side data generation 2023-07-24 13:48:22 +09:00
pgevent Update copyright for 2023 2023-01-02 15:00:37 -05:00
psql Add psql \drg command to display role grants. 2023-07-19 12:46:30 -04:00
scripts Handle DROP DATABASE getting interrupted 2023-07-13 13:03:28 -07:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00