From: | Christian Storm <christian(dot)storm(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-performance(at)postgresql(dot)org, PFC <lists(at)peufeu(dot)com> |
Subject: | Re: pgmemcache |
Date: | 2006-04-13 17:29:28 |
Message-ID: | 4D23826E-7325-4946-B79A-80E321E0E497@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Not sure if I follow why this is a problem. Seems like it would be
beneficial to have both BEFORE and AFTER COMMIT triggers.
With the BEFORE COMMIT trigger you would have the ability to 'un-
commit' (rollback) the transaction. With
the AFTER COMMIT trigger you wouldn't have that option because the
commit has already been successful. However,
with an AFTER COMMIT you would be able to trigger other downstream
events that rely on a transaction successfully committing.
If the trigger fails it is the triggers problem, it isn't the
commit's problem, i.e., you wouldn't want to 'un-commit'. If the
trigger
gets an error it has to gracefully deal with that error programatically.
Where have I gone astray with this logic?
On Apr 12, 2006, at 5:35 PM, Tom Lane wrote:
> "Jim C. Nasby" <jnasby(at)pervasive(dot)com> writes:
>> Why are AFTER COMMIT triggers impossible?
>
> What happens if such a trigger gets an error? You can't un-commit.
>
> regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-04-13 17:38:00 | Re: pgmemcache |
Previous Message | Jim Nasby | 2006-04-13 16:42:25 | Re: multi column query |