Re: How to sort deleted rows with trigger. Some rows before then some rows after. - Mailing list pgsql-sql

From Rob Sargent
Subject Re: How to sort deleted rows with trigger. Some rows before then some rows after.
Date
Msg-id b7e2662f-317a-f8a5-eb62-727a7b884982@gmail.com
Whole thread Raw
In response to Re: How to sort deleted rows with trigger. Some rows before then some rows after.  (intmail01 <intmail01@gmail.com>)
List pgsql-sql
On 9/20/21 9:53 AM, intmail01 wrote:
>
> How to use transaction in a trigger ? It seems there is no possibility 
> to control transaction within function
>
>
>
>
You would start a transaction, send two SQL statements.  The trigger is 
within the transaction (and does not test for negative values).
> For each batch of deletes send two delete statements in a single 
> transaction. The first with negative values. The second with 
> non-negative values.
> > Thank you
> >
> >
> >
>




pgsql-sql by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: How to sort deleted rows with trigger. Some rows before then some rows after.
Next
From: Matias Montroull
Date:
Subject: SQL Error [0A000]: ERROR: OVER is not supported for ordered-set aggregate percentile_cont