add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
4 rows affected
extnamespace
x_unaccent
name sim_unaccent sim
Schönstraße 1 1
Schonstraße 1 0.6
Schoenstraße 0.6875 0.5625
Schyrenstraße 0.5555556 0.5294118
name ts_lexize to_tsvector to_tsquery match
Schyrenstraße {Schyrenstrasse} 'schyrenstrass':1 'schonstrass' f
Schönstraße {Schonstrasse} 'schonstrass':1 'schonstrass' t
Schonstraße {Schonstrasse} 'schonstrass':1 'schonstrass' t
Schoenstraße {Schoenstrasse} 'schoenstrass':1 'schonstrass' f
name to_tsvector to_tsquery match similarity
Schönstraße 'schonstrass':1 'schonstrass' t 1
Schonstraße 'schonstrass':1 'schonstrass' t 0.6
QUERY PLAN
Sort (cost=60.78..60.79 rows=1 width=48)
  Sort Key: ((f_unaccent(name) <-> 'Schonstrasse'::text)), ((name <-> 'Schönstraße'::text))
  -> Bitmap Heap Scan on names (cost=56.00..60.77 rows=1 width=48)
        Recheck Cond: (f_unaccent(name) % 'Schonstrasse'::text)
        -> Bitmap Index Scan on names_trgm_idx (cost=0.00..56.00 rows=1 width=0)
              Index Cond: (f_unaccent(name) % 'Schonstrasse'::text)
QUERY PLAN
Sort (cost=12.78..12.79 rows=1 width=137)
  Sort Key: ((name <-> 'Schönstraße'::text))
  -> Bitmap Heap Scan on names (cost=8.00..12.77 rows=1 width=137)
        Recheck Cond: (to_tsvector('de'::regconfig, name) @@ '''schonstrass'''::tsquery)
        -> Bitmap Index Scan on names_fts_idx (cost=0.00..8.00 rows=1 width=0)
              Index Cond: (to_tsvector('de'::regconfig, name) @@ '''schonstrass'''::tsquery)