diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-01-05 18:53:12 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-01-05 18:53:12 +0000 |
commit | 42acc6e8c4fa6117b7783455200e41f8019a58b0 (patch) | |
tree | 2a8380230f553b81a66f8160ead410c6c6c7a543 /src/include/commands | |
parent | 9db64857e0bd31eee463e90c21aba52be8174726 (diff) | |
download | postgresql-42acc6e8c4fa6117b7783455200e41f8019a58b0.tar.gz |
Move variable.c to commands/ and aclchk.c to catalog/.
Diffstat (limited to 'src/include/commands')
-rw-r--r-- | src/include/commands/variable.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/include/commands/variable.h b/src/include/commands/variable.h new file mode 100644 index 0000000000..772e9981d9 --- /dev/null +++ b/src/include/commands/variable.h @@ -0,0 +1,58 @@ +/* + * Headers for handling of 'SET var TO', 'SHOW var' and 'RESET var' + * statements + * + * $Id: variable.h,v 1.1 1998/01/05 18:53:08 momjian Exp $ + * + */ +#ifndef VARIABLE_H +#define VARIABLE_H 1 + +enum DateFormat +{ + Date_Postgres, Date_SQL, Date_ISO +}; + +/*-----------------------------------------------------------------------*/ +struct PGVariables +{ + struct + { + bool euro; + enum DateFormat format; + } date; +}; + +extern struct PGVariables PGVariables; + +/*-----------------------------------------------------------------------*/ +bool SetPGVariable(const char *, const char *); +bool GetPGVariable(const char *); +bool ResetPGVariable(const char *); + +extern bool set_date(void); +extern bool show_date(void); +extern bool reset_date(void); +extern bool parse_date(const char *); +extern bool set_timezone(void); +extern bool show_timezone(void); +extern bool reset_timezone(void); +extern bool parse_timezone(const char *); +extern bool set_cost_heap(void); +extern bool show_cost_heap(void); +extern bool reset_cost_heap(void); +extern bool parse_cost_heap(const char *); +extern bool set_cost_index(void); +extern bool show_cost_index(void); +extern bool reset_cost_index(void); +extern bool parse_cost_index(const char *); +extern bool set_r_plans(void); +extern bool show_r_plans(void); +extern bool reset_r_plans(void); +extern bool parse_r_plans(const char *); +extern bool set_geqo(void); +extern bool show_geqo(void); +extern bool reset_geqo(void); +extern bool parse_geqo(const char *); + +#endif /* VARIABLE_H */ |