Re: How to sort deleted rows with trigger. Some rows before then some rows after.

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: How to sort deleted rows with trigger. Some rows before then some rows after.
Дата
Msg-id b7e2662f-317a-f8a5-eb62-727a7b884982@gmail.com
обсуждение исходный текст
Ответ на Re: How to sort deleted rows with trigger. Some rows before then some rows after.  (intmail01 <intmail01@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: How to sort deleted rows with trigger. Some rows before then some rows after.
Следующее
От: Matias Montroull
Дата:
Сообщение: SQL Error [0A000]: ERROR: OVER is not supported for ordered-set aggregate percentile_cont