*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
#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 ("");
}
{
/* 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)
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;