diff --git a/src/backend/catalog/pg_conversion.c b/src/backend/catalog/pg_conversion.c index 9bd587f40d..917d265691 100644 --- a/src/backend/catalog/pg_conversion.c +++ b/src/backend/catalog/pg_conversion.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/pg_conversion.c,v 1.9 2002/12/04 05:18:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/pg_conversion.c,v 1.10 2003/01/27 00:45:19 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -143,7 +143,7 @@ ConversionDrop(Oid conversionOid, DropBehavior behavior) if (!superuser() && ((Form_pg_conversion) GETSTRUCT(tuple))->conowner != GetUserId()) - elog(ERROR, "permission denied"); + elog(ERROR, "DROP CONVERSION: permission denied"); ReleaseSysCache(tuple); diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 51e1fc351a..516c900c41 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.109 2002/12/05 04:04:42 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.110 2003/01/27 00:46:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -532,7 +532,7 @@ AlterDatabaseSet(AlterDatabaseSetStmt *stmt) if (!(superuser() || ((Form_pg_database) GETSTRUCT(tuple))->datdba == GetUserId())) - elog(ERROR, "permission denied"); + elog(ERROR, "ALTER DATABASE SET: permission denied"); MemSet(repl_repl, ' ', sizeof(repl_repl)); repl_repl[Anum_pg_database_datconfig - 1] = 'r'; diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 7d7dd0ecb4..c50524cf9b 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.115 2002/12/05 04:04:42 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.116 2003/01/27 00:47:37 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -908,7 +908,7 @@ AlterUserSet(AlterUserSetStmt *stmt) if (!(superuser() || ((Form_pg_shadow) GETSTRUCT(oldtuple))->usesysid == GetUserId())) - elog(ERROR, "permission denied"); + elog(ERROR, "ALTER USER SET: permission denied"); for (i = 0; i < Natts_pg_shadow; i++) repl_repl[i] = ' '; diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 45da9ba1c1..16ca619445 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.189 2003/01/10 22:03:28 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.190 2003/01/27 00:48:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -973,7 +973,7 @@ ProcessUtility(Node *parsetree, case T_CheckPointStmt: if (!superuser()) - elog(ERROR, "permission denied"); + elog(ERROR, "CHECKPOINT: permission denied"); CreateCheckPoint(false, false); break; diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index ad0df82135..1215439619 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.99 2003/01/25 05:19:46 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.100 2003/01/27 00:51:06 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -616,7 +616,7 @@ SetSessionAuthorization(AclId userid) if (userid != AuthenticatedUserId && !AuthenticatedUserIsSuperuser) - elog(ERROR, "permission denied"); + elog(ERROR, "SET SESSION AUTHORIZATION: permission denied"); SetSessionUserId(userid); SetUserId(userid);