1 CREATE OR REPLACE FUNCTION ts2_page_title()
6 IF TG_OP = 'INSERT' THEN
7 NEW.titlevector = to_tsvector('default',REPLACE(NEW.page_title,'/',' '));
8 ELSIF NEW.page_title != OLD.page_title THEN
9 NEW.titlevector := to_tsvector('default',REPLACE(NEW.page_title,'/',' '));