I have a TABLE (say "test"). I want to write a trigger which shall generate
and send an Email.
Trigger fires for ROW or STATEMENT level. I want to send mail for bunch of
records and not for every insert.
Is there any way to FIRE TRIGGER FOR EVERY COMMIT and not for any DML ???
INSERT INTO test VALUES (1,'Denis');
INSERT INTO test VALUES (2,'Denis');
INSERT INTO test VALUES (3,'Denis');
I want to send an email with following text (as body)
"User xxx has inserted 3 records as details below :
AS SINGLE EMAIL.
In response to
pgsql-novice by date
|Next:||From: Rob||Date: 2002-01-25 16:08:09|
|Subject: Table Names|
|Previous:||From: Steve Boyle (Roselink)||Date: 2002-01-25 11:40:21|
|Subject: Re: Table Names|