mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
String fixes/improvements found by Alvaro Herrera
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.84 2003/09/29 00:05:25 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.85 2003/10/02 06:36:37 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -4090,7 +4090,7 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
|
|||||||
|
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||||
errmsg("tables \"%s\" already has a TOAST table",
|
errmsg("table \"%s\" already has a TOAST table",
|
||||||
RelationGetRelationName(rel))));
|
RelationGetRelationName(rel))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.127 2003/09/29 00:05:25 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.128 2003/10/02 06:36:37 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -648,7 +648,7 @@ CreateUser(CreateUserStmt *stmt)
|
|||||||
if (sysid_exists)
|
if (sysid_exists)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||||
errmsg("sysid %d is already assigned", sysid)));
|
errmsg("user ID %d is already assigned", sysid)));
|
||||||
|
|
||||||
/* If no sysid given, use max existing id + 1 */
|
/* If no sysid given, use max existing id + 1 */
|
||||||
if (!havesysid)
|
if (!havesysid)
|
||||||
@ -1354,7 +1354,7 @@ CreateGroup(CreateGroupStmt *stmt)
|
|||||||
if (sysid_exists)
|
if (sysid_exists)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||||
errmsg("sysid %d is already assigned", sysid)));
|
errmsg("group ID %d is already assigned", sysid)));
|
||||||
|
|
||||||
/* If no sysid given, use max existing id + 1 */
|
/* If no sysid given, use max existing id + 1 */
|
||||||
if (!havesysid)
|
if (!havesysid)
|
||||||
|
Reference in New Issue
Block a user