add remove split language chart show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 100000
DELETE 5056
ANALYZE
CREATE INDEX
CREATE INDEX
QUERY PLAN
Index Scan using tbl_col_ops_idx on tbl (cost=0.42..8.44 rows=9 width=92) (actual time=0.079..0.080 rows=0 loops=1)
  Index Cond: ((col ~>=~ 'Bra'::text) AND (col ~<~ 'Brb'::text))
  Filter: (col ~~ 'Bra%'::text)
Planning Time: 0.612 ms
Execution Time: 0.166 ms
EXPLAIN
QUERY PLAN
Index Scan using tbl_col_ops_idx on tbl (cost=0.42..8.44 rows=9 width=92) (actual time=0.038..0.038 rows=0 loops=1)
  Index Cond: ((col ~>=~ '0ra'::text) AND (col ~<~ '0rb'::text))
  Filter: (col ~~ '0ra%'::text)
Planning Time: 0.087 ms
Execution Time: 0.052 ms
EXPLAIN
QUERY PLAN
Index Scan using tbl_col_ops_idx on tbl (cost=0.42..8.44 rows=9 width=92) (actual time=0.056..0.056 rows=0 loops=1)
  Index Cond: ((col ~>=~ 'zra'::text) AND (col ~<~ 'zrb'::text))
  Filter: (col ~~ 'zra%'::text)
Planning Time: 0.072 ms
Execution Time: 0.069 ms
EXPLAIN
QUERY PLAN
Index Scan using tbl_col_ops_idx on tbl (cost=0.42..8.44 rows=9 width=92) (actual time=0.037..0.037 rows=0 loops=1)
  Index Cond: ((col ~>=~ '-ra'::text) AND (col ~<~ '-rb'::text))
  Filter: (col ~~ '-ra%'::text)
Planning Time: 0.071 ms
Execution Time: 0.050 ms
EXPLAIN
QUERY PLAN
Bitmap Heap Scan on tbl (cost=11.97..1027.59 rows=475 width=92) (actual time=0.075..0.075 rows=0 loops=1)
  Recheck Cond: ("left"(col, 3) = 'Bra'::text)
  -> Bitmap Index Scan on tbl_col_left3_idx (cost=0.00..11.86 rows=475 width=0) (actual time=0.069..0.069 rows=0 loops=1)
        Index Cond: ("left"(col, 3) = 'Bra'::text)
Planning Time: 0.097 ms
Execution Time: 0.108 ms
EXPLAIN
QUERY PLAN
Bitmap Heap Scan on tbl (cost=11.97..1027.59 rows=475 width=92) (actual time=0.381..0.381 rows=0 loops=1)
  Recheck Cond: ("left"(col, 3) = '0ra'::text)
  -> Bitmap Index Scan on tbl_col_left3_idx (cost=0.00..11.86 rows=475 width=0) (actual time=0.379..0.380 rows=0 loops=1)
        Index Cond: ("left"(col, 3) = '0ra'::text)
Planning Time: 0.051 ms
Execution Time: 0.402 ms
EXPLAIN
QUERY PLAN
Bitmap Heap Scan on tbl (cost=11.97..1027.59 rows=475 width=92) (actual time=0.040..0.041 rows=0 loops=1)
  Recheck Cond: ("left"(col, 3) = 'zra'::text)
  -> Bitmap Index Scan on tbl_col_left3_idx (cost=0.00..11.86 rows=475 width=0) (actual time=0.039..0.039 rows=0 loops=1)
        Index Cond: ("left"(col, 3) = 'zra'::text)
Planning Time: 0.052 ms
Execution Time: 0.061 ms
EXPLAIN
QUERY PLAN
Bitmap Heap Scan on tbl (cost=11.97..1027.59 rows=475 width=92) (actual time=0.041..0.042 rows=0 loops=1)
  Recheck Cond: ("left"(col, 3) = '-ra'::text)
  -> Bitmap Index Scan on tbl_col_left3_idx (cost=0.00..11.86 rows=475 width=0) (actual time=0.040..0.040 rows=0 loops=1)
        Index Cond: ("left"(col, 3) = '-ra'::text)
Planning Time: 0.049 ms
Execution Time: 0.061 ms
EXPLAIN