On Wed, Oct 11, 2006 at 21:31:37 +0200, Daniel Drotos <[EMAIL PROTECTED]> wrote: > On Wed, 11 Oct 2006, Markus Schaber wrote: > > After inserting new rows into this table, very old rows are going to > be deleted. But value of deleted info should be remembered somehow, so > there is a trigger on delete which keeps sum of the deleted info > values in a separate table. This makes the application happy.
You need to be careful if two of these can run at the same time if you are adding the values to prexisting sums otherwise you might end up summing just the values from one of the delete sets. ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq