pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: PL/pgSQL: Add support for SET TRANSACTION
Date: Thu, 05 Apr 2018 19:30:37 +0000
Message-ID: <E1f4Aaj-0004vc-5g@gemulon.postgresql.org> (raw)

PL/pgSQL: Add support for SET TRANSACTION

A normal SQL command run inside PL/pgSQL acquires a snapshot, but SET
TRANSACTION does not work anymore if a snapshot is set.  So we have to
handle this separately.

Reviewed-by: Alexander Korotkov <a.korotkov@postgrespro.ru>
Reviewed-by: Tomas Vondra <tomas.vondra@2ndquadrant.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b981275b6531df5a4c4f069571bcb39fc4dee770

Modified Files
--------------
.../plpgsql/src/expected/plpgsql_transaction.out   | 29 ++++++++++++++++++
src/pl/plpgsql/src/pl_exec.c                       | 35 ++++++++++++++++++++++
src/pl/plpgsql/src/pl_funcs.c                      | 23 ++++++++++++++
src/pl/plpgsql/src/pl_gram.y                       | 32 +++++++++++++++++++-
src/pl/plpgsql/src/pl_scanner.c                    |  2 ++
src/pl/plpgsql/src/plpgsql.h                       | 13 +++++++-
src/pl/plpgsql/src/sql/plpgsql_transaction.sql     | 25 ++++++++++++++++
7 files changed, 157 insertions(+), 2 deletions(-)



Message-ID: <E1f4Aaj-0004vc-5g@gemulon.postgresql.org>
Permalink:  ../E1f4Aaj-0004vc-5g@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f4Aaj-0004vc-5g@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: PL/pgSQL: Add support for SET TRANSACTION
  In-Reply-To: <E1f4Aaj-0004vc-5g@gemulon.postgresql.org>
  References: <E1f4Aaj-0004vc-5g@gemulon.postgresql.org>

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

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