summaryrefslogtreecommitdiff
path: root/src/bin/psql/settings.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2009-02-26 16:02:39 +0000
committerPeter Eisentraut <peter_e@gmx.net>2009-02-26 16:02:39 +0000
commit9de59fd191dc86e7a49a5d7726ef09041549fc88 (patch)
tree9edc44560aa7beca92b7bc6c8e889c78655172c0 /src/bin/psql/settings.h
parenteea49769d415b00ea36e2ee64774cb4d1313d991 (diff)
Add a -w/--no-password option that prevents all password prompts to all
programs that have a -W/--password option. In passing, remove the ancient PSQL_ALWAYS_GET_PASSWORDS compile option.
Diffstat (limited to 'src/bin/psql/settings.h')
-rw-r--r--src/bin/psql/settings.h10
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;