| From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
|---|---|
| To: | Ketema <ketema(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Trigger/Rules Order of operations |
| Date: | 2008-12-16 17:51:55 |
| Message-ID: | 4947EABB.5060207@iol.ie |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 16/12/2008 16:26, Ketema wrote:
> automatically after certain input. In analyzing the task I saw two
> main paths. Use the trigger and rule system that Pg provides or
> construct external methods to control the logic and issue "simple"
> commands to insert data when appropriate. I chose to use the trigger
You could encapsulate your business rules in functions (pl/pgsql or
whatever) within the database....easier to understand what's going on
(speaking as one who is completely ignorant about the rule system) and
you get full ACIDity.
Ray.
------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Emanuel Calvo Franco | 2008-12-16 18:24:33 | Re: Trigger/Rules Order of operations |
| Previous Message | Jaime Casanova | 2008-12-16 17:51:25 | monitor effectiveness of fillfactor and vacuums |