From: | Tony Caduto <tony(dot)caduto(at)amsoftwaredesign(dot)com> |
---|---|
To: | Tony Caduto <tony(dot)caduto(at)amsoftwaredesign(dot)com> |
Cc: | Tino Wildenhain <tino(at)wildenhain(dot)de>, "Randal L(dot) Schwartz" <merlyn(at)stonehenge(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: sending mail from Postgres |
Date: | 2006-01-01 15:00:10 |
Message-ID: | 43B7EE7A.9030609@amsoftwaredesign.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> And you can code a trigger that fires when there is a difference of 60
> days between dates(I have apps that do so...,and the trigger sends a email)
I guess I should expand on this more, the trigger is fired via a
insert/update into a table called logons, when a user logs on to the
system a record is inserted(if it does not exist) or updated. Once
fired the trigger function then compares dates on the accounts the user
is reviewing, if there is a 60 day difference a email is sent to
managers letting them know that the user has accounts that have not been
reviewed in the last 60 days.
The trigger is of course fired by a insert/delete or update, but the
logic inside determines if the trigger should actually do something or
just be aborted.
Tony
From | Date | Subject | |
---|---|---|---|
Next Message | Andrus Moor | 2006-01-01 15:22:53 | How to change postgres.conf file from client |
Previous Message | Tony Caduto | 2006-01-01 14:40:42 | Re: sending mail from Postgres |