]> granicus.if.org Git - postgresql/commit
Turn transaction_isolation into GUC enum
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 9 Oct 2018 19:21:57 +0000 (21:21 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 9 Oct 2018 19:26:00 +0000 (21:26 +0200)
commitf8c10f616fa5081999ac48a0b6621057db806851
tree043fb6016948bca317dea48bdc43bde2456a6628
parentb6b297d20df9f738be20a450f80bade535819220
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
src/backend/commands/variable.c
src/backend/utils/misc/guc.c
src/include/commands/variable.h