diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-01-29 16:58:54 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-01-29 16:58:54 +0000 |
commit | 2b84cbb60f6ff6cb58d42dff026aaf0b2e9ca8ab (patch) | |
tree | dcd592dcfdebbc799bd225ac8bf50c0dfe1e61eb /src/bin/psql/prompt.c | |
parent | 7e7416bd4e221fd95701a048eaf2893ab379d9a5 (diff) | |
download | postgresql-2b84cbb60f6ff6cb58d42dff026aaf0b2e9ca8ab.tar.gz postgresql-2b84cbb60f6ff6cb58d42dff026aaf0b2e9ca8ab.zip |
A few minor psql enhancements
Initdb help correction
Changed end/abort to commit/rollback and changed related notices
Commented out way old printing functions in libpq
Fixed a typo in alter table / alter column
Diffstat (limited to 'src/bin/psql/prompt.c')
-rw-r--r-- | src/bin/psql/prompt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c index f9d6cc098ea..a06a712e401 100644 --- a/src/bin/psql/prompt.c +++ b/src/bin/psql/prompt.c @@ -1,9 +1,9 @@ /* * psql - the PostgreSQL interactive terminal * - * Copyright 2000 by PostgreSQL Global Development Team + * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.6 2000/01/18 23:30:24 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.7 2000/01/29 16:58:49 petere Exp $ */ #include <c.h> #include "prompt.h" @@ -39,7 +39,7 @@ * %n - database user name * %/ - current database * %~ - like %/ but "~" when database name equals user name - * %# - "#" if the username is postgres, ">" otherwise + * %# - "#" if superuser, ">" otherwise * %R - in prompt1 normally =, or ^ if single line mode, * or a ! if session is not connected to a database; * in prompt2 -, *, ', or "; @@ -194,7 +194,7 @@ get_prompt(promptStatus_t status) case '#': { - if (pset.db && strcmp(PQuser(pset.db), "postgres") == 0) + if (pset.issuper) buf[0] = '#'; else buf[0] = '>'; |