do triggers/procedures run instantly?

Поиск
Список
Период
Сортировка
От chris markiewicz
Тема do triggers/procedures run instantly?
Дата
Msg-id 019501c0382e$a48e1580$dbb846c6@cmarkiewicz
обсуждение исходный текст
Ответ на Re: PL/Perl compilation error  (Gilles DAROLD <gilles@darold.net>)
Список pgsql-general
hello.

i have the following trigger:

CREATE TRIGGER trig_person_accessorclass BEFORE INSERT ON Person FOR EACH
ROW EXECUTE PROCEDURE sp_person_accessorclass();

the corresponding function inserts a row into the accessor_class table.

the issue is that when i insert a row into person and immediately query the
accessor_class table, i don't find anything.  does it take some amount of
time for the trigger/sp to run?  is it just placed in a queue or something?
can i speed this up or is it best to not count on the performance of the
function?

thanks

chris



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

Предыдущее
От: Travis Bauer
Дата:
Сообщение: pgsql and php 3.0.16 question
Следующее
От: DaVinci
Дата:
Сообщение: Inherited tables, indexes and serials.