Skip to content

Commit 59b89e9

Browse files
committed
Document tri-valued variables in createdb, +1, -1, 0.
1 parent baf4e18 commit 59b89e9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/bin/scripts/createuser.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.21 2005/10/15 02:49:41 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.22 2005/12/12 15:41:52 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -59,15 +59,19 @@ main(int argc, char *argv[])
5959
bool password = false;
6060
bool echo = false;
6161
bool quiet = false;
62+
char *conn_limit = NULL;
63+
bool pwprompt = false;
64+
char *newpassword = NULL;
65+
/*
66+
* Tri-valued variables. -1 is "NO", +1 is enable and 0 uses the
67+
* server default.
68+
*/
6269
int createdb = 0;
6370
int superuser = 0;
6471
int createrole = 0;
6572
int inherit = 0;
6673
int login = 0;
67-
char *conn_limit = NULL;
68-
bool pwprompt = false;
69-
int encrypted = 0; /* 0 uses server default */
70-
char *newpassword = NULL;
74+
int encrypted = 0;
7175

7276
PQExpBufferData sql;
7377

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy