forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit29836df
committed
pgbench: Add TAP tests to check consistency of data generated
The tables created by pgbench rely on a few assumptions for TPC-B, wherethe "filler" attribute is used to comply with this benchmark's rules aswell as pgbencn historical behavior. The data generated for each tableuses this filler in a different way:- pgbench_accounts uses it as a blank-padded empty string.- pgbench_tellers and pgbench_branches use it as a NULL value.There were no checks done about the consistency of the data initialized,and this has showed up while discussing a patch that changes the logicin charge of the client-side data generation (pgbench documents all thatalready in its comments). This commit adds some checks on the datagenerated for both the server-side and client-side logic.Reviewed-by: Tristan PartinDiscussion:https://postgr.es/m/ZLik4oKnqRmVCM3t@paquier.xyz1 parentbda97e4 commit29836df
1 file changed
+35
-0
lines changedLines changed: 35 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
11 | 40 |
| |
12 | 41 |
| |
13 | 42 |
| |
| |||
67 | 96 |
| |
68 | 97 |
| |
69 | 98 |
| |
| 99 | + | |
| 100 | + | |
| 101 | + | |
70 | 102 |
| |
71 | 103 |
| |
72 | 104 |
| |
| |||
101 | 133 |
| |
102 | 134 |
| |
103 | 135 |
| |
| 136 | + | |
| 137 | + | |
| 138 | + | |
104 | 139 |
| |
105 | 140 |
| |
106 | 141 |
| |
|
0 commit comments
Comments
(0)