Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2e7ce9a

Browse files
committed
snapfs_set_backend_snapshot_sequence passed
switch_to_snapshot_transaction test is not actual now
1 parent db9f73b commit 2e7ce9a

File tree

4 files changed

+395
-150
lines changed

4 files changed

+395
-150
lines changed
Lines changed: 393 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,393 @@
1+
Parsed test spec with 2 sessions
2+
3+
starting permutation: s1_mk_sn s1_seq_n s2_seq_n s1_mk_sn s1_seq_n s2_seq_n s1_mk_sn s1_seq_n s2_seq_n s1_sb_sn_1 s1_seq_n s2_seq_n s1_seq_c s2_seq_c s1_sb_sn_2 s1_seq_n s2_seq_n s1_seq_c s2_seq_c s1_sb_sn_3 s1_seq_n s2_seq_n s1_seq_c s2_seq_c s1_sb_sn_4 s1_seq_n s2_seq_n s1_seq_c s2_seq_c s1_sb_sn_0 s1_seq_n s2_seq_n s1_seq_c s2_seq_c
4+
step s1_mk_sn:
5+
select 1 as "make_snapshot" from pg_make_snapshot();
6+
7+
make_snapshot
8+
9+
1
10+
step s1_seq_n:
11+
select nextval( 'seq1' );
12+
13+
nextval
14+
15+
1
16+
step s2_seq_n:
17+
select nextval( 'seq1' );
18+
19+
nextval
20+
21+
2
22+
step s1_mk_sn:
23+
select 1 as "make_snapshot" from pg_make_snapshot();
24+
25+
make_snapshot
26+
27+
1
28+
step s1_seq_n:
29+
select nextval( 'seq1' );
30+
31+
nextval
32+
33+
3
34+
step s2_seq_n:
35+
select nextval( 'seq1' );
36+
37+
nextval
38+
39+
4
40+
step s1_mk_sn:
41+
select 1 as "make_snapshot" from pg_make_snapshot();
42+
43+
make_snapshot
44+
45+
1
46+
step s1_seq_n:
47+
select nextval( 'seq1' );
48+
49+
nextval
50+
51+
5
52+
step s2_seq_n:
53+
select nextval( 'seq1' );
54+
55+
nextval
56+
57+
6
58+
step s1_sb_sn_1:
59+
select pg_set_backend_snapshot( ( select recent_snapshot - 3 from pg_control_snapshot() ) );
60+
61+
pg_set_backend_snapshot
62+
63+
64+
step s1_seq_n:
65+
select nextval( 'seq1' );
66+
67+
ERROR: relation "seq1" does not exist
68+
step s2_seq_n:
69+
select nextval( 'seq1' );
70+
71+
nextval
72+
73+
7
74+
step s1_seq_c:
75+
select currval( 'seq1' );
76+
77+
ERROR: relation "seq1" does not exist
78+
step s2_seq_c:
79+
select currval( 'seq1' );
80+
81+
currval
82+
83+
7
84+
step s1_sb_sn_2:
85+
select pg_set_backend_snapshot( ( select recent_snapshot - 2 from pg_control_snapshot() ) );
86+
87+
pg_set_backend_snapshot
88+
89+
90+
step s1_seq_n:
91+
select nextval( 'seq1' );
92+
93+
ERROR: Can not update sequences in snapshot
94+
step s2_seq_n:
95+
select nextval( 'seq1' );
96+
97+
nextval
98+
99+
8
100+
step s1_seq_c:
101+
select currval( 'seq1' );
102+
103+
currval
104+
105+
5
106+
step s2_seq_c:
107+
select currval( 'seq1' );
108+
109+
currval
110+
111+
8
112+
step s1_sb_sn_3:
113+
select pg_set_backend_snapshot( ( select recent_snapshot - 1 from pg_control_snapshot() ) );
114+
115+
pg_set_backend_snapshot
116+
117+
118+
step s1_seq_n:
119+
select nextval( 'seq1' );
120+
121+
ERROR: Can not update sequences in snapshot
122+
step s2_seq_n:
123+
select nextval( 'seq1' );
124+
125+
nextval
126+
127+
9
128+
step s1_seq_c:
129+
select currval( 'seq1' );
130+
131+
currval
132+
133+
5
134+
step s2_seq_c:
135+
select currval( 'seq1' );
136+
137+
currval
138+
139+
9
140+
step s1_sb_sn_4:
141+
select pg_set_backend_snapshot( ( select recent_snapshot from pg_control_snapshot() ) );
142+
143+
pg_set_backend_snapshot
144+
145+
146+
step s1_seq_n:
147+
select nextval( 'seq1' );
148+
149+
ERROR: Can not update sequences in snapshot
150+
step s2_seq_n:
151+
select nextval( 'seq1' );
152+
153+
nextval
154+
155+
10
156+
step s1_seq_c:
157+
select currval( 'seq1' );
158+
159+
currval
160+
161+
5
162+
step s2_seq_c:
163+
select currval( 'seq1' );
164+
165+
currval
166+
167+
10
168+
step s1_sb_sn_0:
169+
select pg_set_backend_snapshot( 0 );
170+
171+
pg_set_backend_snapshot
172+
173+
174+
step s1_seq_n:
175+
select nextval( 'seq1' );
176+
177+
nextval
178+
179+
11
180+
step s2_seq_n:
181+
select nextval( 'seq1' );
182+
183+
nextval
184+
185+
12
186+
step s1_seq_c:
187+
select currval( 'seq1' );
188+
189+
currval
190+
191+
11
192+
step s2_seq_c:
193+
select currval( 'seq1' );
194+
195+
currval
196+
197+
12
198+
199+
starting permutation: s1_mk_sn s1_seq_n s2_seq_n s1_mk_sn s1_seq_n s2_seq_n s1_mk_sn s1_seq_n s2_seq_n s1_sb_sn_4 s1_seq_n s2_seq_n s1_seq_c s2_seq_c s1_sb_sn_3 s1_seq_n s2_seq_n s1_seq_c s2_seq_c s1_sb_sn_2 s1_seq_n s2_seq_n s1_seq_c s2_seq_c s1_sb_sn_1 s1_seq_n s2_seq_n s1_seq_c s2_seq_c s1_sb_sn_0 s1_seq_n s2_seq_n s1_seq_c s2_seq_c
200+
step s1_mk_sn:
201+
select 1 as "make_snapshot" from pg_make_snapshot();
202+
203+
make_snapshot
204+
205+
1
206+
step s1_seq_n:
207+
select nextval( 'seq1' );
208+
209+
nextval
210+
211+
1
212+
step s2_seq_n:
213+
select nextval( 'seq1' );
214+
215+
nextval
216+
217+
2
218+
step s1_mk_sn:
219+
select 1 as "make_snapshot" from pg_make_snapshot();
220+
221+
make_snapshot
222+
223+
1
224+
step s1_seq_n:
225+
select nextval( 'seq1' );
226+
227+
nextval
228+
229+
3
230+
step s2_seq_n:
231+
select nextval( 'seq1' );
232+
233+
nextval
234+
235+
4
236+
step s1_mk_sn:
237+
select 1 as "make_snapshot" from pg_make_snapshot();
238+
239+
make_snapshot
240+
241+
1
242+
step s1_seq_n:
243+
select nextval( 'seq1' );
244+
245+
nextval
246+
247+
5
248+
step s2_seq_n:
249+
select nextval( 'seq1' );
250+
251+
nextval
252+
253+
6
254+
step s1_sb_sn_4:
255+
select pg_set_backend_snapshot( ( select recent_snapshot from pg_control_snapshot() ) );
256+
257+
pg_set_backend_snapshot
258+
259+
260+
step s1_seq_n:
261+
select nextval( 'seq1' );
262+
263+
ERROR: Can not update sequences in snapshot
264+
step s2_seq_n:
265+
select nextval( 'seq1' );
266+
267+
nextval
268+
269+
7
270+
step s1_seq_c:
271+
select currval( 'seq1' );
272+
273+
currval
274+
275+
5
276+
step s2_seq_c:
277+
select currval( 'seq1' );
278+
279+
currval
280+
281+
7
282+
step s1_sb_sn_3:
283+
select pg_set_backend_snapshot( ( select recent_snapshot - 1 from pg_control_snapshot() ) );
284+
285+
pg_set_backend_snapshot
286+
287+
288+
step s1_seq_n:
289+
select nextval( 'seq1' );
290+
291+
ERROR: Can not update sequences in snapshot
292+
step s2_seq_n:
293+
select nextval( 'seq1' );
294+
295+
nextval
296+
297+
8
298+
step s1_seq_c:
299+
select currval( 'seq1' );
300+
301+
currval
302+
303+
5
304+
step s2_seq_c:
305+
select currval( 'seq1' );
306+
307+
currval
308+
309+
8
310+
step s1_sb_sn_2:
311+
select pg_set_backend_snapshot( ( select recent_snapshot - 2 from pg_control_snapshot() ) );
312+
313+
pg_set_backend_snapshot
314+
315+
316+
step s1_seq_n:
317+
select nextval( 'seq1' );
318+
319+
ERROR: Can not update sequences in snapshot
320+
step s2_seq_n:
321+
select nextval( 'seq1' );
322+
323+
nextval
324+
325+
9
326+
step s1_seq_c:
327+
select currval( 'seq1' );
328+
329+
currval
330+
331+
5
332+
step s2_seq_c:
333+
select currval( 'seq1' );
334+
335+
currval
336+
337+
9
338+
step s1_sb_sn_1:
339+
select pg_set_backend_snapshot( ( select recent_snapshot - 3 from pg_control_snapshot() ) );
340+
341+
pg_set_backend_snapshot
342+
343+
344+
step s1_seq_n:
345+
select nextval( 'seq1' );
346+
347+
ERROR: relation "seq1" does not exist
348+
step s2_seq_n:
349+
select nextval( 'seq1' );
350+
351+
nextval
352+
353+
10
354+
step s1_seq_c:
355+
select currval( 'seq1' );
356+
357+
ERROR: relation "seq1" does not exist
358+
step s2_seq_c:
359+
select currval( 'seq1' );
360+
361+
currval
362+
363+
10
364+
step s1_sb_sn_0:
365+
select pg_set_backend_snapshot( 0 );
366+
367+
pg_set_backend_snapshot
368+
369+
370+
step s1_seq_n:
371+
select nextval( 'seq1' );
372+
373+
nextval
374+
375+
11
376+
step s2_seq_n:
377+
select nextval( 'seq1' );
378+
379+
nextval
380+
381+
12
382+
step s1_seq_c:
383+
select currval( 'seq1' );
384+
385+
currval
386+
387+
11
388+
step s2_seq_c:
389+
select currval( 'seq1' );
390+
391+
currval
392+
393+
12

0 commit comments

Comments
 (0)