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

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: intmail01 <intmail01(at)gmail(dot)com>
Cc: Rob Sargent <robjsargent(at)gmail(dot)com>, pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Re: How to sort deleted rows with trigger. Some rows before then some rows after.
Date: 2021-09-20 16:22:30
Message-ID: CAKFQuwY94C9z54SKUh00Mbeo7DDS9jfr5Q1AS3P9Uzo2TtoeMQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Sep 20, 2021 at 8:54 AM intmail01 <intmail01(at)gmail(dot)com> wrote:

>
> How to use transaction in a trigger ? It seems there is no possibility to
> control transaction within function
>
>
You cannot. You don't get to introduce a transaction boundary in the
middle of a statement's execution. Not to mention what it would mean to
have transaction boundaries for deferred triggers.

David J.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rob Sargent 2021-09-20 16:58:03 Re: How to sort deleted rows with trigger. Some rows before then some rows after.
Previous Message intmail01 2021-09-20 15:53:03 Re: How to sort deleted rows with trigger. Some rows before then some rows after.