Обсуждение: pgsql: Turn transaction_isolation into GUC enum

Поиск
Список
Период
Сортировка

pgsql: Turn transaction_isolation into GUC enum

От
Peter Eisentraut
Дата:
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@iki.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(-)