Forum OpenACS Q&A: Re: Tsearch2 install fails with PostgreSQL 8.2

Collapse
Posted by Richard Hamilton on
Actually, no sorry - that won't do it.

How about this instead?:

if { [db_0or1row "tsearch_compile_check" "select distinct typname from pg_type where typname='tsvector'"] } {

# if tsearch is installed
ns_log Notice "******* Tsearch2 is compiled and installed. ***********"
# continue with installation

Collapse
Posted by Don Baccus on
This should work, yes.