string is too long for tsvector

From: wschnell <warwick(dot)schneller(at)me(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: string is too long for tsvector
Date: 2014-09-08 00:00:03
Message-ID: 1410134403839-5818131.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

I am new so apologies if this has been asked many times.

I have a table which contains approx 1 million text documents in individual
rows. I do not need all of these documents for my search. I only need those
that contain the phrase 'other events'

Here is my code
/
SELECT * FROM eightks\d
WHERE to_tsvector(text) @@ to_tsquery('other_events') ;/

When I run this I get the following error message

/string is too long for tsvector (2368732 bytes, max 1048575 bytes)/

Not sure what to do?

Also, I would like those that match the above phase to be put into a new
table? Not sure how to do this.

Thanks heaps for any help.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/string-is-too-long-for-tsvector-tp5818131.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.

Browse pgsql-novice by date

  From Date Subject
Next Message Erwan Tanajaya 2014-09-08 08:14:25 Trigger difference in 9.0 and 9.3
Previous Message Tom Lane 2014-09-06 19:39:33 Re: Compiling for iOS