pgsql: Turn transaction_isolation into GUC enum

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Turn transaction_isolation into GUC enum
Date: 2018-10-09 19:32:59
Message-ID: E1g9xkZ-0005aU-T0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Turn transaction_isolation into GUC enum

It was previously a string setting that was converted into an enum by
custom code, but using the GUC enum facility seems much simpler and
doesn't change any functionality, except that

set transaction_isolation='default';

no longer works, but that was never documented and doesn't work with
any other transaction characteristics. (Note that this is not the
same as RESET or SET TO DEFAULT, which still work.)

Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Discussion: https://www.postgresql.org/message-id/457db615-e84c-4838-310e-43841eb806e5@iki.fi

Branch
------
master

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

Modified Files
--------------
src/backend/commands/variable.c | 57 ++---------------------------------------
src/backend/utils/misc/guc.c | 25 +++++++++---------
src/include/commands/variable.h | 4 +--
3 files changed, 15 insertions(+), 71 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message pgsql 2018-10-09 22:05:23 pgsql: Tag refs/tags/REL_11_RC1 was created
Previous Message Tom Lane 2018-10-09 17:36:40 pgsql: Make src/common/exec.c's error logging less ugly.