Re: BUG #8048: Text Search

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: luigisag(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8048: Text Search
Date: 2013-04-09 15:23:59
Message-ID: 1699.1365521039@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

luigisag(at)gmail(dot)com writes:
> CREATE TABLE "User_Full_Text_Search_2" (
> "Email" varchar(50),
> "UserId" varchar(50),
> "Full_Text_Search" varchar(4096),
> "tsv" varchar(4096)
> )
> WITH (OIDS=FALSE)
> ;

You declared tsv as a plain varchar column, not a tsvector, so text
searches on it aren't optimized. I'm surprised the system even let
you build a GIN index on it --- maybe you have btree_gin installed?
Anyway that index isn't useful for answering a full-text-search
query, as you'll see if you compare EXPLAIN results.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message mr_gapearce 2013-04-09 16:03:04 BUG #8050: Need quotes around service exe (imagepath registry key)
Previous Message Kevin Grittner 2013-04-09 15:20:10 Re: BUG #8048: Text Search