mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Remove warnings for operations that have no effect when executed repeatedly.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.98 2003/08/04 02:39:58 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.99 2003/09/15 00:26:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -221,8 +221,6 @@ Async_Listen(char *relname, int pid)
|
||||
if (alreadyListener)
|
||||
{
|
||||
heap_close(lRel, AccessExclusiveLock);
|
||||
ereport(WARNING,
|
||||
(errmsg("already listening on \"%s\"", relname)));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.80 2003/08/30 14:59:34 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.81 2003/09/15 00:26:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -2567,14 +2567,6 @@ AlterTableAlterOids(Oid myrelid, bool recurse, bool setOid)
|
||||
*/
|
||||
if (tuple_class->relhasoids == setOid)
|
||||
{
|
||||
if (setOid)
|
||||
ereport(NOTICE,
|
||||
(errmsg("table \"%s\" is already WITH OIDS",
|
||||
RelationGetRelationName(rel))));
|
||||
else
|
||||
ereport(NOTICE,
|
||||
(errmsg("table \"%s\" is already WITHOUT OIDS",
|
||||
RelationGetRelationName(rel))));
|
||||
heap_close(class_rel, RowExclusiveLock);
|
||||
heap_close(rel, NoLock); /* close rel, but keep lock! */
|
||||
return;
|
||||
@@ -4001,9 +3993,6 @@ AlterTableClusterOn(Oid relOid, const char *indexName)
|
||||
*/
|
||||
if (indexForm->indisclustered)
|
||||
{
|
||||
ereport(NOTICE,
|
||||
(errmsg("table \"%s\" is already being clustered on index \"%s\"",
|
||||
NameStr(rel->rd_rel->relname), indexName)));
|
||||
ReleaseSysCache(indexTuple);
|
||||
heap_close(rel, NoLock);
|
||||
return;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.44 2003/09/09 23:22:19 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.45 2003/09/15 00:26:31 petere Exp $
|
||||
*
|
||||
* DESCRIPTION
|
||||
* The "DefineFoo" routines take the parse tree and pick out the
|
||||
@@ -1246,10 +1246,6 @@ AlterDomainNotNull(List *names, bool notNull)
|
||||
/* Is the domain already set to the desired constraint? */
|
||||
if (typTup->typnotnull == notNull)
|
||||
{
|
||||
ereport(NOTICE,
|
||||
(errmsg("\"%s\" is already set to %s",
|
||||
TypeNameToString(typename),
|
||||
notNull ? "NOT NULL" : "NULL")));
|
||||
heap_close(typrel, RowExclusiveLock);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.124 2003/08/04 02:39:58 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.125 2003/09/15 00:26:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1498,11 +1498,6 @@ AlterGroup(AlterGroupStmt *stmt, const char *tag)
|
||||
|
||||
if (!intMember(sysid, newlist))
|
||||
newlist = lappendi(newlist, sysid);
|
||||
else
|
||||
ereport(WARNING,
|
||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||
errmsg("user \"%s\" is already in group \"%s\"",
|
||||
strVal(lfirst(item)), stmt->name)));
|
||||
}
|
||||
|
||||
/* Do the update */
|
||||
|
||||
Reference in New Issue
Block a user