Hiroyuki Sato <hiroysato(at)gmail(dot)com> writes:
> Sorry, I re-created my questions. I was mis-pasted query log on previous
> question.
> (@~ operator is PGroonga extension (http://pgroonga.github.io))
> [ "like" is actually the operator of interest ]
Ah. You might get some good results with trigram indexes (ie,
contrib/pg_trgm and a GIST or GIN index). See
http://www.postgresql.org/docs/9.4/static/pgtrgm.html
regards, tom lane