suggestion needed for implementation

Поиск
Список
Период
Сортировка
От Wei Weng
Тема suggestion needed for implementation
Дата
Msg-id Pine.LNX.4.56.0310061207070.3133@localhost.localdomain
обсуждение исходный текст
Список pgsql-sql
I need to create triggers on a number of tables that have full text search
capability. The trigger, basically, needs to call select
set_curcfg('default') first to set the locale , then call tsearch2
function on the text columns in the table to update the index. How can I 
implement a trigger that does two different thing (select and tsearch2) 
together? I was thinking about making them into one function, say, 
function updatetbl(), that does two things together. But then, postgresql 
does not allow variable length of arguments. updatetbl can not just take 
arbitrary number of arguments to pass on tsearch2.

What can I do here to implement this trigger?

Thanks

Wei



В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Multiple table join
Следующее
От: "Chris Faulkner"
Дата:
Сообщение: create new field