diff options
Diffstat (limited to 'src/bin/psql/settings.h')
-rw-r--r-- | src/bin/psql/settings.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/psql/settings.h b/src/bin/psql/settings.h index fbf5ebe9310..31b76e112da 100644 --- a/src/bin/psql/settings.h +++ b/src/bin/psql/settings.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2009, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.34 2009/01/01 17:23:55 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.35 2009/02/26 16:02:38 petere Exp $ */ #ifndef SETTINGS_H #define SETTINGS_H @@ -55,6 +55,12 @@ typedef enum hctl_ignoreboth = hctl_ignorespace | hctl_ignoredups } HistControl; +enum trivalue +{ + TRI_DEFAULT, + TRI_NO, + TRI_YES +}; typedef struct _psqlSettings { @@ -69,7 +75,7 @@ typedef struct _psqlSettings bool notty; /* stdin or stdout is not a tty (as determined * on startup) */ - bool getPassword; /* prompt the user for a username and password */ + enum trivalue getPassword; /* prompt the user for a username and password */ FILE *cur_cmd_source; /* describe the status of the current main * loop */ bool cur_cmd_interactive; |