forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit591c504
committed
Allow running just selected steps of pgbench's initialization sequence.
This feature caters to specialized use-cases such as running the normalpgbench scenario with nonstandard indexes, or inserting other actionsbetween steps of the initialization sequence. The normal sequence ofinitialization actions is broken down into half a dozen steps which canbe executed in a user-specified order, to the extent to which that'ssensible. The actions themselves aren't changed, except to make themmore robust against nonstandard uses:* all four tables are now dropped in one DROP command, to reduceassumptions about what foreign key relationships exist;* all four tables are now truncated at the start of the data loadstep, for consistency;* the foreign key creation commands now specify constraint names, toprevent accidentally creating duplicate constraints by executing the'f' step twice.Make some cosmetic adjustments in the messages emitted by pgbenchso that it's clear which steps are getting run, and so that themessages agree with the documented names of the steps.In passing, fix failure to enforce that the -v option is used onlyin benchmarking mode.Masahiko Sawada, reviewed by Fabien Coelho, editorialized a bit by meDiscussion:https://postgr.es/m/CAD21AoCsz0ZzfCFcxYZ+PUdpkDd5VsCSG0Pre_-K1EgokCDFYA@mail.gmail.com1 parent44ae64c commit591c504
File tree
4 files changed
+364
-114
lines changed- doc/src/sgml/ref
- src/bin/pgbench
- t
4 files changed
+364
-114
lines changedLines changed: 81 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
137 |
| - | |
138 |
| - | |
139 |
| - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
161 | 234 |
| |
162 | 235 |
| |
163 | 236 |
| |
| |||
176 | 249 |
| |
177 | 250 |
| |
178 | 251 |
| |
179 |
| - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
180 | 255 |
| |
181 | 256 |
| |
182 | 257 |
| |
| |||
215 | 290 |
| |
216 | 291 |
| |
217 | 292 |
| |
| 293 | + | |
| 294 | + | |
218 | 295 |
| |
219 | 296 |
| |
220 | 297 |
| |
|
0 commit comments
Comments
(0)