dbTalk Databases Forums  

Re: Send email when new record inserted

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Re: Send email when new record inserted in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stephan Szabo
 
Posts: n/a

Default Re: Send email when new record inserted - 02-15-2004 , 01:56 PM






On Thu, 12 Feb 2004, Nick Tew wrote:

Quote:
This may seem a trivial task, but im stumped. When a new record is inserted
in one of my psql tables a need an email to be sent to pre-defined users.
The users will be 'interested parties' to the record inserted - therefore
these will be specified in a separate table. Is there a method for
completing this process?
You can do this either from a trigger (written in C or an untrusted pl
language) or with a listening application using the listen/notify
interface. The former has the problem that if the transaction is rolled
back, the email will already have been sent, but that may not be an issue
with your system. The latter is a bit more involved.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.