Re: deleting rows in specific order - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: deleting rows in specific order
Date
Msg-id 20061016175110.GA15534@wolff.to
Whole thread Raw
In response to Re: deleting rows in specific order  (Daniel Drotos <drdani@mazsola.iit.uni-miskolc.hu>)
List pgsql-sql
On Wed, Oct 11, 2006 at 21:31:37 +0200, Daniel Drotos <drdani@mazsola.iit.uni-miskolc.hu> 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.


pgsql-sql by date:

Previous
From: "Penchalaiah P."
Date:
Subject: hi i want help on levels
Next
From: chrisj
Date:
Subject: Re: Assigning a timestamp without timezone to a timestamp