Re: Full text indexing of documents - Mailing list pgsql-novice

From Rodrigo E. De León Plicet
Subject Re: Full text indexing of documents
Date
Msg-id a55915760802181111g6cffd8b3ie3e0c39336448c6d@mail.gmail.com
Whole thread Raw
In response to Full text indexing of documents  ("Leo" <fleovey@jus.gov.ar>)
List pgsql-novice
On Feb 18, 2008 10:08 AM, Leo <fleovey@jus.gov.ar> wrote:
> How can I create the tsvector data for large text files WITHOUT loading the
> text into a column of the DB?
> I did it using 2 tables (one with the text inserted with a perl program) and
> copying the tsvectors and removing the table with the text, but it is not
> easy to add data this way.
> The text files are "frozen" HTML documents so I don't need a trigger to
> update the tsvector, all I store is a URL of the text.
> So what I need  is a way to point to a file (maybe there is a special data
> type?) and create the tsvector from the document.

Try using pg_read_file() to see if it helps you:
http://www.postgresql.org/docs/8.2/static/functions-admin.html#FUNCTIONS-ADMIN-GENFILE

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: postgres 8.3 & ident authentication
Next
From: Rai Developer
Date:
Subject: Re: SQL LEFT JOIN and WHERE