From: | Tino Wildenhain <tino(at)wildenhain(dot)de> |
---|---|
To: | Tony Caduto <tony(dot)caduto(at)amsoftwaredesign(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: sending mail from Postgres |
Date: | 2005-12-28 17:45:41 |
Message-ID: | 43B2CF45.9080408@wildenhain.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tony Caduto schrieb:
> Tino Wildenhain wrote:
>
>> How do you stop your server sending mail in case a transaction goes
>> wild and is sending mails for every updated row in a some megs table?
>>
>
> It would not be smart to send a email via a trigger that updates or
> inserts 1000s of rows would it? All the times I have used PL Perl to
> send a email that has NEVER been the case.
>
> I agree that for a super busy server that is running a website or
> something I probably would not do it that way(most would send the email
> via PHP or whatever). BUT for a GUI client server application(not web
> based) it's more than acceptable especially when the emails are being
> sent internally to a internal mail server where the connection/send time
> is low. It also does not have to be called from a trigger you could
> just call it from another function.
>
> It's not that difficult to catch and handle exceptions in a 8.1 or 8.0
We do not talk about exceptions here. I'm talking about transactions.
And you never know who will be aborting a transaction after your
call to the function. No need for referral to the fine manuals :-)
++Tino
From | Date | Subject | |
---|---|---|---|
Next Message | Jim C. Nasby | 2005-12-28 17:48:24 | Re: just an inconvenience, or.... : failed queries don't appear in the log anymore since v8.?.? |
Previous Message | Randal L. Schwartz | 2005-12-28 17:44:48 | Re: Adding columns to a view |