5 | | # Create a empty database |
6 | | |
7 | | {{{ |
8 | | psql postgres -c'create database t1' |
9 | | }}} |
10 | | |
11 | | # Add the code needed for testing |
12 | | |
13 | | {{{ |
14 | | t1 -f db_topo_rowlevel_lock_init.sql |
15 | | }}} |
16 | | |
17 | | # Test with no rowlevel locking, should return something like this |
18 | | |
19 | | {{{ |
20 | | psql t1 -f db_topo_rowlevel_lock_test_fail.sql |
21 | | ?column? | error | id1 | id2 |
22 | | ------------+------------------+-----+----- |
23 | | validation | face within face | 1 | 2 |
24 | | validation | face within face | 2 | 1 |
25 | | validation | face within face | 1 | 3 |
26 | | validation | face within face | 2 | 3 |
27 | | (4 rows) |
28 | | }}} |
29 | | |
30 | | |
31 | | # Test with rowlevel locking , no topop errors should be found |
32 | | |
33 | | {{{ |
34 | | psql t1 -f db_topo_rowlevel_lock_test_ok.sql |
35 | | }}} |
| 6 | So the only problem we here are when multiple threads working with related spatial areas, which are expected. |