aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/enum.c
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2021-09-02 10:39:09 +0900
committerTatsuo Ishii <ishii@postgresql.org>2021-09-02 10:39:09 +0900
commit06ba4a63b85e5aa47b325c3235c16c05a0b58b96 (patch)
tree6314f1e5ebbf3424b10fab49e5923972dfe1b40a /src/backend/utils/adt/enum.c
parent469150a240dd79acbe7d86cb5df869d95f4d6d2d (diff)
downloadpostgresql-06ba4a63b85e5aa47b325c3235c16c05a0b58b96.tar.gz
postgresql-06ba4a63b85e5aa47b325c3235c16c05a0b58b96.zip
Use COPY FREEZE in pgbench for faster benchmark table population.
While populating the pgbench_accounts table, plain COPY was unconditionally used. By changing it to COPY FREEZE, the time for VACUUM is significantly reduced, thus the total time of "pgbench -i" is also reduced. This only happens if pgbench runs against PostgreSQL 14 or later because COPY FREEZE in previous versions of PostgreSQL does not bring the benefit. Also if partitioning is used, COPY FREEZE cannot be used. In this case plain COPY will be used too. Author: Tatsuo Ishii Discussion: https://postgr.es/m/20210308.143907.2014279678657453983.t-ishii@gmail.com Reviewed-by: Fabien COELHO, Laurenz Albe, Peter Geoghegan, Dean Rasheed
Diffstat (limited to 'src/backend/utils/adt/enum.c')
0 files changed, 0 insertions, 0 deletions