1/*
2 * variable.h
3 * Routines for handling specialized SET variables.
4 *
5 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
7 *
8 * src/include/commands/variable.h
9 */
10#ifndef VARIABLE_H
11#define VARIABLE_H
12
13#include "utils/guc.h"
14
15
16extern bool check_datestyle(char **newval, void **extra, GucSource source);
17extern void assign_datestyle(const char *newval, void *extra);
18extern bool check_timezone(char **newval, void **extra, GucSource source);
19extern void assign_timezone(const char *newval, void *extra);
20extern const char *show_timezone(void);
21extern bool check_log_timezone(char **newval, void **extra, GucSource source);
22extern void assign_log_timezone(const char *newval, void *extra);
23extern const char *show_log_timezone(void);
24extern bool check_transaction_read_only(bool *newval, void **extra, GucSource source);
25extern bool check_XactIsoLevel(int *newval, void **extra, GucSource source);
26extern bool check_transaction_deferrable(bool *newval, void **extra, GucSource source);
27extern bool check_random_seed(double *newval, void **extra, GucSource source);
28extern void assign_random_seed(double newval, void *extra);
29extern const char *show_random_seed(void);
30extern bool check_client_encoding(char **newval, void **extra, GucSource source);
31extern void assign_client_encoding(const char *newval, void *extra);
32extern bool check_session_authorization(char **newval, void **extra, GucSource source);
33extern void assign_session_authorization(const char *newval, void *extra);
34extern bool check_role(char **newval, void **extra, GucSource source);
35extern void assign_role(const char *newval, void *extra);
36extern const char *show_role(void);
37
38#endif /* VARIABLE_H */
39