From 2b84cbb60f6ff6cb58d42dff026aaf0b2e9ca8ab Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 29 Jan 2000 16:58:54 +0000 Subject: 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 --- src/bin/psql/prompt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/bin/psql/prompt.c') 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 #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] = '>'; -- cgit v1.2.3