agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: David G. Johnston <david.g.johnston@gmail.com>
To: intmail01 <intmail01@gmail.com>
Cc: Rob Sargent <robjsargent@gmail.com>
Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>
Subject: Re: How to sort deleted rows with trigger. Some rows before then some rows after.
Date: Mon, 20 Sep 2021 09:22:30 -0700
Message-ID: <CAKFQuwY94C9z54SKUh00Mbeo7DDS9jfr5Q1AS3P9Uzo2TtoeMQ@mail.gmail.com> (raw)
In-Reply-To: <bcddros62v36q1vuc6ukcm3v.1632153025543@email.android.com>
References: <bcddros62v36q1vuc6ukcm3v.1632153025543@email.android.com>

On Mon, Sep 20, 2021 at 8:54 AM intmail01 <intmail01@gmail.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.

view thread (5+ messages)  latest in thread

Message-ID: <CAKFQuwY94C9z54SKUh00Mbeo7DDS9jfr5Q1AS3P9Uzo2TtoeMQ@mail.gmail.com>
Permalink:  ../CAKFQuwY94C9z54SKUh00Mbeo7DDS9jfr5Q1AS3P9Uzo2TtoeMQ@mail.gmail.com/
Also on:    postgresql.org/message-id/CAKFQuwY94C9z54SKUh00Mbeo7DDS9jfr5Q1AS3P9Uzo2TtoeMQ@mail.gmail.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: david.g.johnston@gmail.com, intmail01@gmail.com, robjsargent@gmail.com, pgsql-sql@lists.postgresql.org
  Subject: Re: How to sort deleted rows with trigger. Some rows before then some rows after.
  In-Reply-To: <CAKFQuwY94C9z54SKUh00Mbeo7DDS9jfr5Q1AS3P9Uzo2TtoeMQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox