PLPerl Trigger to update text search - Mailing list pgsql-general

From Alex Magnum
Subject PLPerl Trigger to update text search
Date
Msg-id CA+cR4zfEYDFbtFAwPFmXU34W7q+mMKJVKTT=1FQw0A=5-yG+sA@mail.gmail.com
Whole thread Raw
Responses Re: PLPerl Trigger to update text search
List pgsql-general
Hi,

I am trying to update a tsvector field through a plperl trigger.

$_TD->{new}{text_search} = to_tsvector('pg_catalog.english', 'text1 text2');

but plperl does not seem to like that... 
ERROR:  Undefined subroutine &main::to_tsvector called 

anyone done that and could help me out if that is actually possible?

Thanks in advance
Alex

pgsql-general by date:

Previous
From: mephysto
Date:
Subject: Re: Backup fatal issue
Next
From: Peter Kroon
Date:
Subject: Re: conn = PQconnectdb(conninfo);