Parsed test spec with 2 sessions

starting permutation: s1_select_count s2_select_count_and_stats
step s1_select_count: 
   SELECT count(*) FROM sensor_data;

count
-----
16850

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Uncompressed      |    2


starting permutation: s1_select_count s1_compress s1_select_count s2_select_count_and_stats
step s1_select_count: 
   SELECT count(*) FROM sensor_data;

count
-----
16850

step s1_compress: 
   SELECT count(*) FROM (SELECT compress_chunk(i, if_not_compressed => true) FROM show_chunks('sensor_data') i) i;

count
-----
    2

step s1_select_count: 
   SELECT count(*) FROM sensor_data;

count
-----
16850

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Compressed        |    2


starting permutation: s2_lock_compression s2_select_count_and_stats s1_compress s2_select_count_and_stats s2_unlock_compression s2_select_count_and_stats
step s2_lock_compression: 
    SELECT debug_waitpoint_enable('compression_done_before_truncate_uncompressed');

debug_waitpoint_enable
----------------------
                      

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Uncompressed      |    2

step s1_compress: 
   SELECT count(*) FROM (SELECT compress_chunk(i, if_not_compressed => true) FROM show_chunks('sensor_data') i) i;
 <waiting ...>
step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Uncompressed      |    2

step s2_unlock_compression: 
    SELECT locktype, mode, granted, objid FROM pg_locks WHERE not granted AND (locktype = 'advisory' or relation::regclass::text LIKE '%chunk') ORDER BY relation, locktype, mode, granted;
    SELECT debug_waitpoint_release('compression_done_before_truncate_uncompressed');

locktype|mode     |granted|    objid
--------+---------+-------+---------
advisory|ShareLock|f      |113732026

debug_waitpoint_release
-----------------------
                       

step s1_compress: <... completed>
count
-----
    2

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Compressed        |    2


starting permutation: s2_lock_compression_after_truncate s2_select_count_and_stats s1_compress s2_unlock_compression_after_truncate s2_select_count_and_stats
step s2_lock_compression_after_truncate: 
    SELECT debug_waitpoint_enable('compression_done_after_truncate_uncompressed');

debug_waitpoint_enable
----------------------
                      

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Uncompressed      |    2

step s1_compress: 
   SELECT count(*) FROM (SELECT compress_chunk(i, if_not_compressed => true) FROM show_chunks('sensor_data') i) i;
 <waiting ...>
step s2_unlock_compression_after_truncate: 
    SELECT locktype, mode, granted, objid FROM pg_locks WHERE granted AND relation::regclass::text LIKE '%hyper%chunk' ORDER BY relation, locktype, mode, granted;
    SELECT debug_waitpoint_release('compression_done_after_truncate_uncompressed');

locktype|mode               |granted|objid
--------+-------------------+-------+-----
relation|AccessExclusiveLock|t      |     
relation|ExclusiveLock      |t      |     
relation|ShareLock          |t      |     

debug_waitpoint_release
-----------------------
                       

step s1_compress: <... completed>
count
-----
    2

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Compressed        |    2


starting permutation: s2_lock_compression_after_delete s2_select_count_and_stats s1_compress_delete s2_select_count_and_stats s2_unlock_compression_after_delete s2_select_count_and_stats
step s2_lock_compression_after_delete: 
    SELECT debug_waitpoint_enable('compression_done_after_delete_uncompressed');

debug_waitpoint_enable
----------------------
                      

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Uncompressed      |    2

step s1_compress_delete: 
   SET timescaledb.compress_truncate_behaviour TO truncate_disabled;
   SELECT count(*) FROM (SELECT compress_chunk(i, if_not_compressed => true) FROM show_chunks('sensor_data') i) i;
 <waiting ...>
step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Uncompressed      |    2

step s2_unlock_compression_after_delete: 
    SELECT locktype, mode, granted, objid FROM pg_locks WHERE granted AND relation::regclass::text LIKE '%hyper%chunk' ORDER BY relation, locktype, mode, granted;
    SELECT debug_waitpoint_release('compression_done_after_delete_uncompressed');

locktype|mode            |granted|objid
--------+----------------+-------+-----
relation|ExclusiveLock   |t      |     
relation|RowExclusiveLock|t      |     

debug_waitpoint_release
-----------------------
                       

step s1_compress_delete: <... completed>
count
-----
    2

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Compressed        |    2


starting permutation: s2_lock_compression_after_truncate_or_delete s2_select_count_and_stats s1_compress_truncate_or_delete s2_unlock_compression_after_truncate_or_delete s2_select_count_and_stats
step s2_lock_compression_after_truncate_or_delete: 
    SELECT debug_waitpoint_enable('compression_done_after_truncate_or_delete_uncompressed');

debug_waitpoint_enable
----------------------
                      

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Uncompressed      |    2

step s1_compress_truncate_or_delete: 
   SET timescaledb.compress_truncate_behaviour TO truncate_or_delete;
   SELECT count(*) FROM (SELECT compress_chunk(i, if_not_compressed => true) FROM show_chunks('sensor_data') i) i;
 <waiting ...>
step s2_unlock_compression_after_truncate_or_delete: 
    SELECT locktype, mode, granted, objid FROM pg_locks WHERE granted AND relation::regclass::text LIKE '%hyper%chunk' ORDER BY relation, locktype, mode, granted;
    SELECT debug_waitpoint_release('compression_done_after_truncate_or_delete_uncompressed');

locktype|mode               |granted|objid
--------+-------------------+-------+-----
relation|AccessExclusiveLock|t      |     
relation|ExclusiveLock      |t      |     
relation|ShareLock          |t      |     

debug_waitpoint_release
-----------------------
                       

step s1_compress_truncate_or_delete: <... completed>
count
-----
    2

step s2_select_count_and_stats: 
   SELECT count(*) FROM sensor_data;
   SELECT compression_status, count(*) FROM chunk_compression_stats('sensor_data') GROUP BY 1 ORDER BY 1, 2;

count
-----
16850

compression_status|count
------------------+-----
Compressed        |    2

