Re: [GENERAL] Dumb question involving to_tsvector and a view

2013-02-24 Thread Kevin Grittner
Jasen Betts wrote: >On 2013-02-23, Raymond C. Rodgers wrote: >> On 02/23/2013 05:26 AM, Tom Lane wrote: >>> A "virtual" tsvector like that is probably going to be useless for >>> searching as soon as you get a meaningful amount of data, because the >>> only way the DB can implement a search is t

Re: [GENERAL] Dumb question involving to_tsvector and a view

2013-02-23 Thread Jasen Betts
On 2013-02-23, Raymond C. Rodgers wrote: > On 02/23/2013 05:26 AM, Tom Lane wrote: >> A "virtual" tsvector like that is probably going to be useless for >> searching as soon as you get a meaningful amount of data, because the >> only way the DB can implement a search is to compute the tsvector

Re: [GENERAL] Dumb question involving to_tsvector and a view

2013-02-23 Thread Raymond C. Rodgers
On 02/23/2013 05:26 AM, Tom Lane wrote: A "virtual" tsvector like that is probably going to be useless for searching as soon as you get a meaningful amount of data, because the only way the DB can implement a search is to compute the tsvector value for each table row and then examine it for the

Re: [GENERAL] Dumb question involving to_tsvector and a view

2013-02-23 Thread Tom Lane
Kevin Grittner writes: > Raymond C. Rodgers wrote: >> As I went to add a tsvector column, it occurred to me that it >> might be possible to add a dynamic tsvector column through the >> use of a view, so I created a temporary view with a command along >> the lines of: >> >> CREATE TEMPORARY

Re: [GENERAL] Dumb question involving to_tsvector and a view

2013-02-22 Thread Kevin Grittner
Raymond C. Rodgers wrote: > As I went to add a tsvector column, it occurred to me that it > might be possible to add a dynamic tsvector column through the > use of a view, so I created a temporary view with a command along > the lines of: > > CREATE TEMPORARY VIEW ftstest AS SELECT id, field1

[GENERAL] Dumb question involving to_tsvector and a view

2013-02-22 Thread Raymond C. Rodgers
Hi folks, I'm building a PHP script for a web site I'm developing. At the moment, there is absolutely no real data in the database, so obviously performance is pretty good right now. I'm in the midst of developing an administration page for the site, which will do a full text search on sev