From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Simon Riggs" <simon(at)2ndquadrant(dot)com> |
Cc: | "Bruce Momjian" <bruce(at)momjian(dot)us>, "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>, "Oleg Bartunov" <oleg(at)sai(dot)msu(dot)su>, "Teodor Sigaev" <teodor(at)sigaev(dot)ru>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: tsearch2 in PostgreSQL 8.3? |
Date: | 2007-08-15 15:14:33 |
Message-ID: | 5459.1187190873@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"Simon Riggs" <simon(at)2ndquadrant(dot)com> writes:
> ISTM that the functional index would be considerably smaller than the
> additional column approach, since tsvectors can be quite long. That
> seems like a very desirable thing with larger textbases. However,
> without an additional column certain queries would not be possible, such
> as IndexScans on a non-text search index with an additional filter on
> text search. So each way would be desirable in different situations.
Huh? Of course you can do the searching without an additional column;
you just have to compute the tsvector on-the-fly at each row. This is
a straight trade of more CPU cycles for less I/O.
> Would it be wrong to allow both approaches?
Nobody has suggested disallowing the trigger approach (indeed it's hard
to see how we could). The argument is mostly about how to make a
functional index approach work conveniently; and secondarily about
what's needed to make dump/restore reliably reproduce the current
database state, whichever approach you choose.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Decibel! | 2007-08-15 15:19:53 | Re: is this trigger safe and efective? - locking (caching via triiggers) |
Previous Message | Decibel! | 2007-08-15 15:06:13 | Re: [mmoncure@gmail.com: Re: [GENERAL] array_to_set functions] |