tsearch2dev82

  • Does casting to tsvector and to_tsvector should produce the same result (for current configuration) ? Currently, they differ:
test=# select to_tsvector('лопатами');
 to_tsvector 
-------------
 'лопата':1
test=# select 'лопатами'::tsvector;
  tsvector  
------------
 'лопатами'
  • show_curcfg returns oid, probably, better to return ts_name.
test=# select show_curcfg();
 show_curcfg 
-------------
       39227
test=# select pg_ts_cfg.ts_name from pg_ts_cfg, show_curcfg() as ts_cfg_oid where pg_ts_cfg.oid = ts_cfg_oid;
 ts_name 
---------
 utf8