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