Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
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
40
41
Parsed test spec with 2 sessions
 
starting permutation: reindex check_catalog begin2 write2 write_dup resolve_dup commit2 wakeup noop1
injection_points_attach
-----------------------
                       
(1 row)
 
step reindex: REINDEX TABLE CONCURRENTLY reind_deferred; <waiting ...>
step check_catalog: 
    SELECT c.relname, i.indisunique, i.indimmediate, i.indisready, i.indisvalid
    FROM pg_class c
    JOIN pg_index i ON i.indexrelid = c.oid
    WHERE c.relname = 'uq_val_ccnew';
 
relname     |indisunique|indimmediate|indisready|indisvalid
------------+-----------+------------+----------+----------
uq_val_ccnew|t          |f           |t         |f         
(1 row)
 
step begin2: BEGIN;
step write2: INSERT INTO reind_deferred VALUES (3, 9);
step write_dup: INSERT INTO reind_deferred VALUES (4, 9);
step resolve_dup: UPDATE reind_deferred SET val = 10 WHERE id = 4;
step commit2: COMMIT;
step wakeup: 
    SELECT injection_points_detach('reindex-conc-index-built');
    SELECT injection_points_wakeup('reindex-conc-index-built');
 
injection_points_detach
-----------------------
                       
(1 row)
 
injection_points_wakeup
-----------------------
                       
(1 row)
 
step reindex: <... completed>
step noop1: