add remove split language 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 2
CREATE INDEX
CREATE INDEX
CREATE INDEX
SET
QUERY PLAN
Bitmap Heap Scan on table1 (cost=8.25..12.51 rows=1 width=32)
  Recheck Cond: (col1_tsv @@ to_tsquery('blacklist'::text))
  -> Bitmap Index Scan on table1_col1_index (cost=0.00..8.25 rows=1 width=0)
        Index Cond: (col1_tsv @@ to_tsquery('blacklist'::text))
EXPLAIN
QUERY PLAN
Bitmap Heap Scan on table1 (cost=12.00..16.27 rows=1 width=32)
  Recheck Cond: (to_tsvector('simple'::regconfig, reverse(col1)) @@ '''ekac'':*'::tsquery)
  -> Bitmap Index Scan on table1_col1_rtsv_idx (cost=0.00..12.00 rows=1 width=0)
        Index Cond: (to_tsvector('simple'::regconfig, reverse(col1)) @@ '''ekac'':*'::tsquery)
EXPLAIN
QUERY PLAN
Bitmap Heap Scan on table1 (cost=44.00..48.01 rows=1 width=32)
  Recheck Cond: (col1 ~~* 'blacklist'::text)
  -> Bitmap Index Scan on table1_col1_gin_trgm_idx (cost=0.00..44.00 rows=1 width=0)
        Index Cond: (col1 ~~* 'blacklist'::text)
EXPLAIN
QUERY PLAN
Bitmap Heap Scan on table1 (cost=16.00..20.01 rows=1 width=32)
  Recheck Cond: (col1 ~~ '%cake'::text)
  -> Bitmap Index Scan on table1_col1_gin_trgm_idx (cost=0.00..16.00 rows=1 width=0)
        Index Cond: (col1 ~~ '%cake'::text)
EXPLAIN
QUERY PLAN
Bitmap Heap Scan on table1 (cost=12.00..16.01 rows=1 width=32)
  Recheck Cond: (col1 ~~ '%cake%'::text)
  -> Bitmap Index Scan on table1_col1_gin_trgm_idx (cost=0.00..12.00 rows=1 width=0)
        Index Cond: (col1 ~~ '%cake%'::text)
EXPLAIN