forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit06ba4a6
committed
Use COPY FREEZE in pgbench for faster benchmark table population.
While populating the pgbench_accounts table, plain COPY wasunconditionally used. By changing it to COPY FREEZE, the time forVACUUM is significantly reduced, thus the total time of "pgbench -i"is also reduced. This only happens if pgbench runs against PostgreSQL14 or later because COPY FREEZE in previous versions of PostgreSQL doesnot bring the benefit. Also if partitioning is used, COPY FREEZEcannot be used. In this case plain COPY will be used too.Author: Tatsuo IshiiDiscussion:https://postgr.es/m/20210308.143907.2014279678657453983.t-ishii@gmail.comReviewed-by: Fabien COELHO, Laurenz Albe, Peter Geoghegan, Dean Rasheed1 parent469150a commit06ba4a6
2 files changed
+13
-1
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
| 223 | + | |
| 224 | + | |
| 225 | + | |
223 | 226 |
| |
224 | 227 |
| |
225 | 228 |
| |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4153 | 4153 |
| |
4154 | 4154 |
| |
4155 | 4155 |
| |
| 4156 | + | |
4156 | 4157 |
| |
4157 | 4158 |
| |
4158 | 4159 |
| |
| |||
4199 | 4200 |
| |
4200 | 4201 |
| |
4201 | 4202 |
| |
4202 |
| - | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
4203 | 4212 |
| |
4204 | 4213 |
| |
4205 | 4214 |
| |
|
0 commit comments
Comments
(0)