aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/createuser.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-12-12 15:41:52 +0000
committerBruce Momjian <bruce@momjian.us>2005-12-12 15:41:52 +0000
commit59b89e9cc76b2e8255a3b97e67e795ac1267e7dd (patch)
tree05caf7b75fba00b16e7ce84d4fa196cf5eabfaae /src/bin/scripts/createuser.c
parentbaf4e187efb75888c7c8a992cbe7906e92e200fc (diff)
downloadpostgresql-59b89e9cc76b2e8255a3b97e67e795ac1267e7dd.tar.gz
postgresql-59b89e9cc76b2e8255a3b97e67e795ac1267e7dd.zip
Document tri-valued variables in createdb, +1, -1, 0.
Diffstat (limited to 'src/bin/scripts/createuser.c')
-rw-r--r--src/bin/scripts/createuser.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/bin/scripts/createuser.c b/src/bin/scripts/createuser.c
index a7de05a75d4..886ee5454a2 100644
--- a/src/bin/scripts/createuser.c
+++ b/src/bin/scripts/createuser.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.21 2005/10/15 02:49:41 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.22 2005/12/12 15:41:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -59,15 +59,19 @@ main(int argc, char *argv[])
bool password = false;
bool echo = false;
bool quiet = false;
+ char *conn_limit = NULL;
+ bool pwprompt = false;
+ char *newpassword = NULL;
+ /*
+ * Tri-valued variables. -1 is "NO", +1 is enable and 0 uses the
+ * server default.
+ */
int createdb = 0;
int superuser = 0;
int createrole = 0;
int inherit = 0;
int login = 0;
- char *conn_limit = NULL;
- bool pwprompt = false;
- int encrypted = 0; /* 0 uses server default */
- char *newpassword = NULL;
+ int encrypted = 0;
PQExpBufferData sql;