/*traceparent='00-00000000000000000000000000000001-0000000000000001-01'*/ SELECT * from pg_tracing_test where a=1 OR b='2' OR c=3;

-- PG < 18
-- +-----------------------------------------------------------------------------------------+
-- | A: BitmapOr                                                                             |
-- ++-----------------------------+-------------------------------+--------------------------+
--  |B: Bitmap Index Scan (a=1)   |C: Bitmap Index Scan (b='2')   |D: Bitmap Index Scan (c=3)|
--  +-----------------------------+-------------------------------+--------------------------+
-- PG >= 18
-- +-----------------------------------------------------------------------------------------+
-- | A: BitmapOr                                                                             |
-- ++-----------------------------+-------------------------------+--------------------------+
--  |B: Bitmap Index Scan (c=1)   |C: Bitmap Index Scan (b='2')   |D: Bitmap Index Scan (a=1)|
--  +-----------------------------+-------------------------------+--------------------------+

SELECT span_operation, deparse_info, parameters, pos_start, pos_end, lvl from peek_ordered_spans_with_pos where trace_id='00000000000000000000000000000001';

-- Clean created spans
CALL clean_spans();
