pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove plpgsql's special-case code paths for SET/RESET.
Date: Sat, 22 May 2021 14:25:43 +0000
Message-ID: <E1lkSZT-0002wn-Uc@gemulon.postgresql.org> (raw)

Remove plpgsql's special-case code paths for SET/RESET.

In the wake of 84f5c2908, it's no longer necessary for plpgsql to
handle SET/RESET specially.  The point of that was just to avoid
taking a new transaction snapshot prematurely, which the regular code
path through _SPI_execute_plan() now does just fine (in fact better,
since it now does the right thing for LOCK too).  Hence, rip out a
few lines of code, going back to the old way of treating SET/RESET
as a generic SQL command.  This essentially reverts all but the
test cases from b981275b6.

Discussion: https://postgr.es/m/15990-eee2ac466b11293d@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/30168be8f75b95183abccf48f0da7a64a0cfbd9f

Modified Files
--------------
.../plpgsql/src/expected/plpgsql_transaction.out   |  2 +-
src/pl/plpgsql/src/pl_exec.c                       | 37 ----------------------
src/pl/plpgsql/src/pl_funcs.c                      | 23 --------------
src/pl/plpgsql/src/pl_gram.y                       | 36 +--------------------
src/pl/plpgsql/src/pl_unreserved_kwlist.h          |  2 --
src/pl/plpgsql/src/plpgsql.h                       | 14 +-------
6 files changed, 3 insertions(+), 111 deletions(-)



Message-ID: <E1lkSZT-0002wn-Uc@gemulon.postgresql.org>
Permalink:  ../E1lkSZT-0002wn-Uc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lkSZT-0002wn-Uc@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Remove plpgsql's special-case code paths for SET/RESET.
  In-Reply-To: <E1lkSZT-0002wn-Uc@gemulon.postgresql.org>
  References: <E1lkSZT-0002wn-Uc@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