From: | Chris Travers <chris(dot)travers(at)gmail(dot)com> |
---|---|
To: | Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> |
Cc: | Darren Duncan <darren(at)darrenduncan(dot)net>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Using Postgresql as application server |
Date: | 2011-08-18 15:37:53 |
Message-ID: | CAKt_ZftVuL_GXo-WPjNvX15YFX6_FRFhf2p4powPcKN2KYAeyA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
On Thu, Aug 18, 2011 at 3:40 AM, Dimitri Fontaine
<dimitri(at)2ndquadrant(dot)fr> wrote:
> Chris Travers <chris(dot)travers(at)gmail(dot)com> writes:
>> I want an email to go out to the ordering manager when the quantity I
>> have of an item drops below the re-order point. I also want this
>> email NOT to go out if the transaction rolls back. (Wait, the order
>> of 50000 widgets I just processed rolled back because it isn't to a
>> valid customer! We normally only sell 50000 per year anyway. No need
>> for the email.)
>
> Just use PGQ and be done with it. You have transactional and
> asynchronous behavior. Typically, a trigger would produce events in the
> queue, and a separate daemon will consume the queue and send emails.
>
That actually looks quite helpful. Thanks.
Best Wishes,
Chris Travers
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2011-08-18 16:16:36 | Re: Using Postgresql as application server |
Previous Message | Jehan-Guillaume (ioguix) de Rorthais | 2011-08-18 13:48:15 | Re: Unable to login with phppgadmin on a remote host |
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2011-08-18 16:16:36 | Re: Using Postgresql as application server |
Previous Message | salah jubeh | 2011-08-18 15:22:07 | Pgadmin plugins |