-- @Description Insert into a pax_tbl relation with 127 concurrent transactions
-- 
DROP TABLE IF EXISTS pax_tbl;
CREATE TABLE pax_tbl (a INT, b INT);

ALTER RESOURCE GROUP admin_group SET CONCURRENCY 130;

1: BEGIN;
2: BEGIN;
3: BEGIN;
4: BEGIN;
5: BEGIN;
6: BEGIN;
7: BEGIN;
8: BEGIN;
9: BEGIN;
10: BEGIN;
11: BEGIN;
12: BEGIN;
13: BEGIN;
14: BEGIN;
15: BEGIN;
16: BEGIN;
17: BEGIN;
18: BEGIN;
19: BEGIN;
20: BEGIN;
21: BEGIN;
22: BEGIN;
23: BEGIN;
24: BEGIN;
25: BEGIN;
26: BEGIN;
27: BEGIN;
28: BEGIN;
29: BEGIN;
30: BEGIN;
31: BEGIN;
32: BEGIN;
33: BEGIN;
34: BEGIN;
35: BEGIN;
36: BEGIN;
37: BEGIN;
38: BEGIN;
39: BEGIN;
40: BEGIN;
41: BEGIN;
42: BEGIN;
43: BEGIN;
44: BEGIN;
45: BEGIN;
46: BEGIN;
47: BEGIN;
48: BEGIN;
49: BEGIN;
50: BEGIN;
51: BEGIN;
52: BEGIN;
53: BEGIN;
54: BEGIN;
55: BEGIN;
56: BEGIN;
57: BEGIN;
58: BEGIN;
59: BEGIN;
60: BEGIN;
61: BEGIN;
62: BEGIN;
63: BEGIN;
64: BEGIN;
65: BEGIN;
66: BEGIN;
67: BEGIN;
68: BEGIN;
69: BEGIN;
70: BEGIN;
71: BEGIN;
72: BEGIN;
73: BEGIN;
74: BEGIN;
75: BEGIN;
76: BEGIN;
77: BEGIN;
78: BEGIN;
79: BEGIN;
80: BEGIN;
81: BEGIN;
82: BEGIN;
83: BEGIN;
84: BEGIN;
85: BEGIN;
86: BEGIN;
87: BEGIN;
88: BEGIN;
89: BEGIN;
90: BEGIN;
91: BEGIN;
92: BEGIN;
93: BEGIN;
94: BEGIN;
95: BEGIN;
96: BEGIN;
97: BEGIN;
98: BEGIN;
99: BEGIN;
100: BEGIN;
101: BEGIN;
102: BEGIN;
103: BEGIN;
104: BEGIN;
105: BEGIN;
106: BEGIN;
107: BEGIN;
108: BEGIN;
109: BEGIN;
110: BEGIN;
111: BEGIN;
112: BEGIN;
113: BEGIN;
114: BEGIN;
115: BEGIN;
116: BEGIN;
117: BEGIN;
118: BEGIN;
119: BEGIN;
120: BEGIN;
121: BEGIN;
122: BEGIN;
123: BEGIN;
124: BEGIN;
125: BEGIN;
126: BEGIN;
127: BEGIN;
1: INSERT INTO pax_tbl VALUES (1, 1);
2: INSERT INTO pax_tbl VALUES (1, 1);
3: INSERT INTO pax_tbl VALUES (1, 1);
4: INSERT INTO pax_tbl VALUES (1, 1);
5: INSERT INTO pax_tbl VALUES (1, 1);
6: INSERT INTO pax_tbl VALUES (1, 1);
7: INSERT INTO pax_tbl VALUES (1, 1);
8: INSERT INTO pax_tbl VALUES (1, 1);
9: INSERT INTO pax_tbl VALUES (1, 1);
10: INSERT INTO pax_tbl VALUES (1, 1);
11: INSERT INTO pax_tbl VALUES (1, 1);
12: INSERT INTO pax_tbl VALUES (1, 1);
13: INSERT INTO pax_tbl VALUES (1, 1);
14: INSERT INTO pax_tbl VALUES (1, 1);
15: INSERT INTO pax_tbl VALUES (1, 1);
16: INSERT INTO pax_tbl VALUES (1, 1);
17: INSERT INTO pax_tbl VALUES (1, 1);
18: INSERT INTO pax_tbl VALUES (1, 1);
19: INSERT INTO pax_tbl VALUES (1, 1);
20: INSERT INTO pax_tbl VALUES (1, 1);
21: INSERT INTO pax_tbl VALUES (1, 1);
22: INSERT INTO pax_tbl VALUES (1, 1);
23: INSERT INTO pax_tbl VALUES (1, 1);
24: INSERT INTO pax_tbl VALUES (1, 1);
25: INSERT INTO pax_tbl VALUES (1, 1);
26: INSERT INTO pax_tbl VALUES (1, 1);
27: INSERT INTO pax_tbl VALUES (1, 1);
28: INSERT INTO pax_tbl VALUES (1, 1);
29: INSERT INTO pax_tbl VALUES (1, 1);
30: INSERT INTO pax_tbl VALUES (1, 1);
31: INSERT INTO pax_tbl VALUES (1, 1);
32: INSERT INTO pax_tbl VALUES (1, 1);
33: INSERT INTO pax_tbl VALUES (1, 1);
34: INSERT INTO pax_tbl VALUES (1, 1);
35: INSERT INTO pax_tbl VALUES (1, 1);
36: INSERT INTO pax_tbl VALUES (1, 1);
37: INSERT INTO pax_tbl VALUES (1, 1);
38: INSERT INTO pax_tbl VALUES (1, 1);
39: INSERT INTO pax_tbl VALUES (1, 1);
40: INSERT INTO pax_tbl VALUES (1, 1);
41: INSERT INTO pax_tbl VALUES (1, 1);
42: INSERT INTO pax_tbl VALUES (1, 1);
43: INSERT INTO pax_tbl VALUES (1, 1);
44: INSERT INTO pax_tbl VALUES (1, 1);
45: INSERT INTO pax_tbl VALUES (1, 1);
46: INSERT INTO pax_tbl VALUES (1, 1);
47: INSERT INTO pax_tbl VALUES (1, 1);
48: INSERT INTO pax_tbl VALUES (1, 1);
49: INSERT INTO pax_tbl VALUES (1, 1);
50: INSERT INTO pax_tbl VALUES (1, 1);
51: INSERT INTO pax_tbl VALUES (1, 1);
52: INSERT INTO pax_tbl VALUES (1, 1);
53: INSERT INTO pax_tbl VALUES (1, 1);
54: INSERT INTO pax_tbl VALUES (1, 1);
55: INSERT INTO pax_tbl VALUES (1, 1);
56: INSERT INTO pax_tbl VALUES (1, 1);
57: INSERT INTO pax_tbl VALUES (1, 1);
58: INSERT INTO pax_tbl VALUES (1, 1);
59: INSERT INTO pax_tbl VALUES (1, 1);
60: INSERT INTO pax_tbl VALUES (1, 1);
61: INSERT INTO pax_tbl VALUES (1, 1);
62: INSERT INTO pax_tbl VALUES (1, 1);
63: INSERT INTO pax_tbl VALUES (1, 1);
64: INSERT INTO pax_tbl VALUES (1, 1);
65: INSERT INTO pax_tbl VALUES (1, 1);
66: INSERT INTO pax_tbl VALUES (1, 1);
67: INSERT INTO pax_tbl VALUES (1, 1);
68: INSERT INTO pax_tbl VALUES (1, 1);
69: INSERT INTO pax_tbl VALUES (1, 1);
70: INSERT INTO pax_tbl VALUES (1, 1);
71: INSERT INTO pax_tbl VALUES (1, 1);
72: INSERT INTO pax_tbl VALUES (1, 1);
73: INSERT INTO pax_tbl VALUES (1, 1);
74: INSERT INTO pax_tbl VALUES (1, 1);
75: INSERT INTO pax_tbl VALUES (1, 1);
76: INSERT INTO pax_tbl VALUES (1, 1);
77: INSERT INTO pax_tbl VALUES (1, 1);
78: INSERT INTO pax_tbl VALUES (1, 1);
79: INSERT INTO pax_tbl VALUES (1, 1);
80: INSERT INTO pax_tbl VALUES (1, 1);
81: INSERT INTO pax_tbl VALUES (1, 1);
82: INSERT INTO pax_tbl VALUES (1, 1);
83: INSERT INTO pax_tbl VALUES (1, 1);
84: INSERT INTO pax_tbl VALUES (1, 1);
85: INSERT INTO pax_tbl VALUES (1, 1);
86: INSERT INTO pax_tbl VALUES (1, 1);
87: INSERT INTO pax_tbl VALUES (1, 1);
88: INSERT INTO pax_tbl VALUES (1, 1);
89: INSERT INTO pax_tbl VALUES (1, 1);
90: INSERT INTO pax_tbl VALUES (1, 1);
91: INSERT INTO pax_tbl VALUES (1, 1);
92: INSERT INTO pax_tbl VALUES (1, 1);
93: INSERT INTO pax_tbl VALUES (1, 1);
94: INSERT INTO pax_tbl VALUES (1, 1);
95: INSERT INTO pax_tbl VALUES (1, 1);
96: INSERT INTO pax_tbl VALUES (1, 1);
97: INSERT INTO pax_tbl VALUES (1, 1);
98: INSERT INTO pax_tbl VALUES (1, 1);
99: INSERT INTO pax_tbl VALUES (1, 1);
100: INSERT INTO pax_tbl VALUES (1, 1);
101: INSERT INTO pax_tbl VALUES (1, 1);
102: INSERT INTO pax_tbl VALUES (1, 1);
103: INSERT INTO pax_tbl VALUES (1, 1);
104: INSERT INTO pax_tbl VALUES (1, 1);
105: INSERT INTO pax_tbl VALUES (1, 1);
106: INSERT INTO pax_tbl VALUES (1, 1);
107: INSERT INTO pax_tbl VALUES (1, 1);
108: INSERT INTO pax_tbl VALUES (1, 1);
109: INSERT INTO pax_tbl VALUES (1, 1);
110: INSERT INTO pax_tbl VALUES (1, 1);
111: INSERT INTO pax_tbl VALUES (1, 1);
112: INSERT INTO pax_tbl VALUES (1, 1);
113: INSERT INTO pax_tbl VALUES (1, 1);
114: INSERT INTO pax_tbl VALUES (1, 1);
115: INSERT INTO pax_tbl VALUES (1, 1);
116: INSERT INTO pax_tbl VALUES (1, 1);
117: INSERT INTO pax_tbl VALUES (1, 1);
118: INSERT INTO pax_tbl VALUES (1, 1);
119: INSERT INTO pax_tbl VALUES (1, 1);
120: INSERT INTO pax_tbl VALUES (1, 1);
121: INSERT INTO pax_tbl VALUES (1, 1);
122: INSERT INTO pax_tbl VALUES (1, 1);
123: INSERT INTO pax_tbl VALUES (1, 1);
124: INSERT INTO pax_tbl VALUES (1, 1);
125: INSERT INTO pax_tbl VALUES (1, 1);
126: INSERT INTO pax_tbl VALUES (1, 1);
127: INSERT INTO pax_tbl VALUES (1, 1);
1: COMMIT;
2: COMMIT;
3: COMMIT;
4: COMMIT;
5: COMMIT;
6: COMMIT;
7: COMMIT;
8: COMMIT;
9: COMMIT;
10: COMMIT;
11: COMMIT;
12: COMMIT;
13: COMMIT;
14: COMMIT;
15: COMMIT;
16: COMMIT;
17: COMMIT;
18: COMMIT;
19: COMMIT;
20: COMMIT;
21: COMMIT;
22: COMMIT;
23: COMMIT;
24: COMMIT;
25: COMMIT;
26: COMMIT;
27: COMMIT;
28: COMMIT;
29: COMMIT;
30: COMMIT;
31: COMMIT;
32: COMMIT;
33: COMMIT;
34: COMMIT;
35: COMMIT;
36: COMMIT;
37: COMMIT;
38: COMMIT;
39: COMMIT;
40: COMMIT;
41: COMMIT;
42: COMMIT;
43: COMMIT;
44: COMMIT;
45: COMMIT;
46: COMMIT;
47: COMMIT;
48: COMMIT;
49: COMMIT;
50: COMMIT;
51: COMMIT;
52: COMMIT;
53: COMMIT;
54: COMMIT;
55: COMMIT;
56: COMMIT;
57: COMMIT;
58: COMMIT;
59: COMMIT;
60: COMMIT;
61: COMMIT;
62: COMMIT;
63: COMMIT;
64: COMMIT;
65: COMMIT;
66: COMMIT;
67: COMMIT;
68: COMMIT;
69: COMMIT;
70: COMMIT;
71: COMMIT;
72: COMMIT;
73: COMMIT;
74: COMMIT;
75: COMMIT;
76: COMMIT;
77: COMMIT;
78: COMMIT;
79: COMMIT;
80: COMMIT;
81: COMMIT;
82: COMMIT;
83: COMMIT;
84: COMMIT;
85: COMMIT;
86: COMMIT;
87: COMMIT;
88: COMMIT;
89: COMMIT;
90: COMMIT;
91: COMMIT;
92: COMMIT;
93: COMMIT;
94: COMMIT;
95: COMMIT;
96: COMMIT;
97: COMMIT;
98: COMMIT;
99: COMMIT;
100: COMMIT;
101: COMMIT;
102: COMMIT;
103: COMMIT;
104: COMMIT;
105: COMMIT;
106: COMMIT;
107: COMMIT;
108: COMMIT;
109: COMMIT;
110: COMMIT;
111: COMMIT;
112: COMMIT;
113: COMMIT;
114: COMMIT;
115: COMMIT;
116: COMMIT;
117: COMMIT;
118: COMMIT;
119: COMMIT;
120: COMMIT;
121: COMMIT;
122: COMMIT;
123: COMMIT;
124: COMMIT;
125: COMMIT;
126: COMMIT;
127: COMMIT;
SELECT * FROM pax_tbl;
SELECT count(*) FROM get_pax_aux_table_all('pax_tbl');

ALTER RESOURCE GROUP admin_group SET CONCURRENCY 20;
