diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-05-17 01:19:19 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-05-17 01:19:19 +0000 |
commit | f0811a74b37427d7ee5eee56b00f7f2ea323d7d6 (patch) | |
tree | 51a596c44fd21144383062aa7d2ce852ae270268 /src/include/commands/variable.h | |
parent | fa613fa1eafd8fd80272a31e8477ad9368c95dbb (diff) | |
download | postgresql-f0811a74b37427d7ee5eee56b00f7f2ea323d7d6.tar.gz postgresql-f0811a74b37427d7ee5eee56b00f7f2ea323d7d6.zip |
Merge the last few variable.c configuration variables into the generic
GUC support. It's now possible to set datestyle, timezone, and
client_encoding from postgresql.conf and per-database or per-user
settings. Also, implement rollback of SET commands that occur in a
transaction that later fails. Create a SET LOCAL var = value syntax
that sets the variable only for the duration of the current transaction.
All per previous discussions in pghackers.
Diffstat (limited to 'src/include/commands/variable.h')
-rw-r--r-- | src/include/commands/variable.h | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/include/commands/variable.h b/src/include/commands/variable.h index f4f12c97127..bdca5c88a92 100644 --- a/src/include/commands/variable.h +++ b/src/include/commands/variable.h @@ -1,18 +1,32 @@ /* - * Headers for handling of 'SET var TO', 'SHOW var' and 'RESET var' - * statements + * variable.h + * Routines for handling specialized SET variables. * - * $Id: variable.h,v 1.17 2001/11/05 17:46:33 momjian Exp $ + * $Id: variable.h,v 1.18 2002/05/17 01:19:19 tgl Exp $ * */ #ifndef VARIABLE_H #define VARIABLE_H -extern void SetPGVariable(const char *name, List *args); -extern void GetPGVariable(const char *name); -extern void ResetPGVariable(const char *name); - -extern void set_default_datestyle(void); -extern void set_default_client_encoding(void); +extern const char *assign_datestyle(const char *value, + bool doit, bool interactive); +extern const char *show_datestyle(void); +extern const char *assign_timezone(const char *value, + bool doit, bool interactive); +extern const char *show_timezone(void); +extern const char *assign_XactIsoLevel(const char *value, + bool doit, bool interactive); +extern const char *show_XactIsoLevel(void); +extern bool assign_random_seed(double value, + bool doit, bool interactive); +extern const char *show_random_seed(void); +extern const char *assign_client_encoding(const char *value, + bool doit, bool interactive); +extern const char *assign_server_encoding(const char *value, + bool doit, bool interactive); +extern const char *show_server_encoding(void); +extern const char *assign_session_authorization(const char *value, + bool doit, bool interactive); +extern const char *show_session_authorization(void); #endif /* VARIABLE_H */ |