aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/variable.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-10-09 21:21:57 +0200
committerPeter Eisentraut <peter_e@gmx.net>2018-10-09 21:26:00 +0200
commitf8c10f616fa5081999ac48a0b6621057db806851 (patch)
tree043fb6016948bca317dea48bdc43bde2456a6628 /src/include/commands/variable.h
parentb6b297d20df9f738be20a450f80bade535819220 (diff)
downloadpostgresql-f8c10f616fa5081999ac48a0b6621057db806851.tar.gz
postgresql-f8c10f616fa5081999ac48a0b6621057db806851.zip
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
Diffstat (limited to 'src/include/commands/variable.h')
-rw-r--r--src/include/commands/variable.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/commands/variable.h b/src/include/commands/variable.h
index 4ea3b0209b1..7373a3f99f8 100644
--- a/src/include/commands/variable.h
+++ b/src/include/commands/variable.h
@@ -22,9 +22,7 @@ extern bool check_log_timezone(char **newval, void **extra, GucSource source);
extern void assign_log_timezone(const char *newval, void *extra);
extern const char *show_log_timezone(void);
extern bool check_transaction_read_only(bool *newval, void **extra, GucSource source);
-extern bool check_XactIsoLevel(char **newval, void **extra, GucSource source);
-extern void assign_XactIsoLevel(const char *newval, void *extra);
-extern const char *show_XactIsoLevel(void);
+extern bool check_XactIsoLevel(int *newval, void **extra, GucSource source);
extern bool check_transaction_deferrable(bool *newval, void **extra, GucSource source);
extern bool check_random_seed(double *newval, void **extra, GucSource source);
extern void assign_random_seed(double newval, void *extra);