pgsql: Simplify parse representation of savepoint commands

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Simplify parse representation of savepoint commands
Date: 2018-03-16 17:28:05
Message-ID: E1ewt9B-0003tF-GJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simplify parse representation of savepoint commands

Instead of embedding the savepoint name in a list and then requiring
complex code to unpack it, just add another struct field to store it
directly.

Reviewed-by: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xact.c | 28 ++--------------------------
src/backend/nodes/copyfuncs.c | 1 +
src/backend/nodes/equalfuncs.c | 1 +
src/backend/parser/gram.y | 15 +++++----------
src/backend/tcop/utility.c | 24 ++++--------------------
src/include/access/xact.h | 4 ++--
src/include/nodes/parsenodes.h | 3 ++-
7 files changed, 17 insertions(+), 59 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-03-16 17:44:54 pgsql: Doc: explicitly point out that enum values can't be dropped.
Previous Message Tom Lane 2018-03-16 16:48:27 pgsql: Mop-up for letting VOID-returning SQL functions end with a SELEC