Commit eccd4f8
committed
Adds support for Foreign keys table in Pstress
https://perconadev.atlassian.net/browse/PSTRESS-152
Introduced support for Foreign key tables in Pstress.
* The tables with foreign key references are suffixed with `_fk` while
creating the tables.
* These FK tables include `ifk_col` column referencing parent table's
`ipkey`.
* Example : When --fk-prob is 50 --tables 100 options are passed, there
is a 50% chance there will be a table tt_N_fk whose parent would be
tt_N.
* To fully test FK behaviour, use `--fk-prob=100 --pk-prob=100`
* The FK tables can be disabled with `--no-fk` option.
Renamed some command-line options for clarity:
* `--primary-key-probability` -> `--pk-prob`
* `--ration-normal-temp` -> `--temp-prob`
Fixed transaction behaviour:
* Ensured `START TRANSACTION` doesn't block other sessions by running
transactions independently.
Adjusted the default probabilities of some features:
* Decreased the probability of using SAVEPOINT in a transaction from 25%
to 10%.
* Decreased the probability of partition tables to 10%.
* Decreased the probability of temporary tables to 10%.
Thanks Rahul Malik for the contribution.
(github.com//pull/92)1 parent e57d733 commit eccd4f8
4 files changed
+387
-116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
| |||
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
124 | | - | |
| 121 | + | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
| |||
241 | 248 | | |
242 | 249 | | |
243 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
244 | 263 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 264 | + | |
| 265 | + | |
250 | 266 | | |
251 | 267 | | |
252 | 268 | | |
| |||
270 | 286 | | |
271 | 287 | | |
272 | 288 | | |
273 | | - | |
| 289 | + | |
274 | 290 | | |
275 | 291 | | |
276 | 292 | | |
| |||
684 | 700 | | |
685 | 701 | | |
686 | 702 | | |
687 | | - | |
| 703 | + | |
688 | 704 | | |
689 | 705 | | |
690 | 706 | | |
| |||
714 | 730 | | |
715 | 731 | | |
716 | 732 | | |
717 | | - | |
| 733 | + | |
718 | 734 | | |
719 | | - | |
| 735 | + | |
720 | 736 | | |
721 | 737 | | |
722 | 738 | | |
723 | 739 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
733 | 747 | | |
734 | 748 | | |
735 | | - | |
736 | | - | |
| 749 | + | |
| 750 | + | |
737 | 751 | | |
738 | | - | |
| 752 | + | |
739 | 753 | | |
740 | 754 | | |
741 | 755 | | |
| |||
0 commit comments