]> granicus.if.org Git - postgresql/commitdiff
Fix up warning and error messages to use single-quotes aroun strings.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Mon, 5 Oct 1998 02:48:49 +0000 (02:48 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Mon, 5 Oct 1998 02:48:49 +0000 (02:48 +0000)
src/backend/utils/init/miscinit.c

index 3f6075edf204a5b168b2e2a51eae18a2e2680d0b..8fbc2a8b83432a6f0ab42241e1bb4c244df08f20 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.22 1998/09/01 04:33:15 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.23 1998/10/05 02:48:49 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -236,12 +236,12 @@ SetDatabaseName(char *name)
 
 #ifndef MULTIBYTE
 /* even if MULTIBYTE is not enabled, this function is neccesary
- * since pg_proc.h does have.
+ * since pg_proc.h has an entry for it.
  */
 const char *
 getdatabaseencoding()
 {
-       elog(ERROR, "you need to enable MB to use this function");
+       elog(ERROR, "MultiByte strings (MB) must be enabled to use this function");
        return ("");
 }
 
@@ -421,13 +421,13 @@ SetPgUserName()
        {
                /* use the (possibly) authenticated name that's provided */
                if (!(p = getenv("PG_USER")))
-                       elog(FATAL, "SetPgUserName: PG_USER environment variable unset");
+                       elog(FATAL, "SetPgUserName: PG_USER environment variable is unset");
        }
        else
        {
                /* setuid() has not yet been done, see above comment */
                if (!(pw = getpwuid(geteuid())))
-                       elog(FATAL, "SetPgUserName: no entry in passwd file");
+                       elog(FATAL, "SetPgUserName: no entry in host passwd file");
                p = pw->pw_name;
        }
        if (UserName)
@@ -473,7 +473,7 @@ SetUserId()
                                                                  PointerGetDatum(userName),
                                                                  0, 0, 0);
        if (!HeapTupleIsValid(userTup))
-               elog(FATAL, "SetUserId: user \"%s\" is not in \"%s\"",
+               elog(FATAL, "SetUserId: user '%s' is not in '%s'",
                         userName,
                         ShadowRelationName);
        UserId = (Oid) ((Form_pg_shadow) GETSTRUCT(userTup))->usesysid;