mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Change made to elog:
o Change all current CVS messages of NOTICE to WARNING. We were going to do this just before 7.3 beta but it has to be done now, as you will see below. o Change current INFO messages that should be controlled by client_min_messages to NOTICE. o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc. to always go to the client. o Remove INFO from the client_min_messages options and add NOTICE. Seems we do need three non-ERROR elog levels to handle the various behaviors we need for these messages. Regression passed.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.158 2002/03/05 05:33:08 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.159 2002/03/06 06:09:29 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* The PerformAddAttribute() code, like most of the relation
|
||||
@@ -126,7 +126,7 @@ PerformPortalFetch(char *name,
|
||||
*/
|
||||
if (name == NULL)
|
||||
{
|
||||
elog(NOTICE, "PerformPortalFetch: missing portal name");
|
||||
elog(WARNING, "PerformPortalFetch: missing portal name");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ PerformPortalFetch(char *name,
|
||||
portal = GetPortalByName(name);
|
||||
if (!PortalIsValid(portal))
|
||||
{
|
||||
elog(NOTICE, "PerformPortalFetch: portal \"%s\" not found",
|
||||
elog(WARNING, "PerformPortalFetch: portal \"%s\" not found",
|
||||
name);
|
||||
return;
|
||||
}
|
||||
@@ -253,7 +253,7 @@ PerformPortalClose(char *name, CommandDest dest)
|
||||
*/
|
||||
if (name == NULL)
|
||||
{
|
||||
elog(NOTICE, "PerformPortalClose: missing portal name");
|
||||
elog(WARNING, "PerformPortalClose: missing portal name");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ PerformPortalClose(char *name, CommandDest dest)
|
||||
portal = GetPortalByName(name);
|
||||
if (!PortalIsValid(portal))
|
||||
{
|
||||
elog(NOTICE, "PerformPortalClose: portal \"%s\" not found",
|
||||
elog(WARNING, "PerformPortalClose: portal \"%s\" not found",
|
||||
name);
|
||||
return;
|
||||
}
|
||||
@@ -749,7 +749,7 @@ AlterTableAlterColumnFlags(const char *relationName,
|
||||
myrelid = RelationGetRelid(rel);
|
||||
heap_close(rel, NoLock); /* close rel, but keep lock! */
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Check the supplied parameters before anything else
|
||||
*/
|
||||
@@ -759,7 +759,7 @@ AlterTableAlterColumnFlags(const char *relationName,
|
||||
{
|
||||
Assert(IsA(flagValue, Integer));
|
||||
newtarget = intVal(flagValue);
|
||||
|
||||
|
||||
/*
|
||||
* Limit target to sane range (should we raise an error instead?)
|
||||
*/
|
||||
@@ -773,7 +773,7 @@ AlterTableAlterColumnFlags(const char *relationName,
|
||||
*/
|
||||
{
|
||||
Assert(IsA(flagValue, Value));
|
||||
|
||||
|
||||
storagemode = strVal(flagValue);
|
||||
if (strcasecmp(storagemode, "plain") == 0)
|
||||
newstorage = 'p';
|
||||
@@ -1556,7 +1556,7 @@ AlterTableDropConstraint(const char *relationName,
|
||||
constrName);
|
||||
/* Otherwise if more than one constraint deleted, notify */
|
||||
else if (deleted > 1)
|
||||
elog(INFO, "Multiple constraints dropped");
|
||||
elog(NOTICE, "Multiple constraints dropped");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user