do triggers/procedures run instantly?

From: "chris markiewicz" <cmarkiew(at)commnav(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: do triggers/procedures run instantly?
Date: 2000-10-17 11:37:33
Message-ID: 019501c0382e$a48e1580$dbb846c6@cmarkiewicz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message DaVinci 2000-10-17 11:53:56 Inherited tables, indexes and serials.
Previous Message Travis Bauer 2000-10-17 11:26:50 pgsql and php 3.0.16 question

Browse pgsql-hackers by date

  From Date Subject
Next Message Abe Asghar 2000-10-17 11:54:21 Deep Trouble
Previous Message Poul L. Christiansen 2000-10-17 11:28:16 Re: Full text indexing (Question/request)