postgresql/src/include/tcop/variable.h

30 lines
612 B
C
Raw Normal View History

/*
* Headers for handling of 'SET var TO', 'SHOW var' and 'RESET var'
1997-04-23 07:52:32 +02:00
* statements
*
* $Id: variable.h,v 1.6 1997/09/08 02:39:21 momjian Exp $
*
*/
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 *);