mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +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:
@ -1,7 +1,7 @@
|
||||
/* -----------------------------------------------------------------------
|
||||
* formatting.c
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.50 2002/02/18 14:24:35 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.51 2002/03/06 06:10:12 momjian Exp $
|
||||
*
|
||||
*
|
||||
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
|
||||
@ -64,7 +64,7 @@
|
||||
*/
|
||||
/***
|
||||
#define DEBUG_TO_FROM_CHAR
|
||||
#define DEBUG_elog_output NOTICE
|
||||
#define DEBUG_elog_output DEBUG3
|
||||
***/
|
||||
|
||||
#include "postgres.h"
|
||||
@ -1867,7 +1867,7 @@ dch_time(int arg, char *inout, int suf, int flag, FormatNode *node, void *data)
|
||||
x == 2 ? 10 : 1;
|
||||
|
||||
/*
|
||||
* elog(NOTICE, "X: %d, MS: %d, LEN: %d", x, tmfc->ms,
|
||||
* elog(DEBUG3, "X: %d, MS: %d, LEN: %d", x, tmfc->ms,
|
||||
* len);
|
||||
*/
|
||||
return len - 1 + SKIP_THth(suf);
|
||||
@ -1908,7 +1908,7 @@ dch_time(int arg, char *inout, int suf, int flag, FormatNode *node, void *data)
|
||||
x == 5 ? 10 : 1;
|
||||
|
||||
/*
|
||||
* elog(NOTICE, "X: %d, US: %d, LEN: %d", x, tmfc->us,
|
||||
* elog(DEBUG3, "X: %d, US: %d, LEN: %d", x, tmfc->us,
|
||||
* len);
|
||||
*/
|
||||
return len - 1 + SKIP_THth(suf);
|
||||
@ -2430,7 +2430,7 @@ dch_date(int arg, char *inout, int suf, int flag, FormatNode *node, void *data)
|
||||
else if (flag == FROM_CHAR)
|
||||
{
|
||||
sscanf(inout, "%03d", &tmfc->year);
|
||||
|
||||
|
||||
/*
|
||||
* 3-digit year:
|
||||
* '100' ... '999' = 1100 ... 1999
|
||||
@ -2466,7 +2466,7 @@ dch_date(int arg, char *inout, int suf, int flag, FormatNode *node, void *data)
|
||||
* 2-digit year:
|
||||
* '00' ... '69' = 2000 ... 2069
|
||||
* '70' ... '99' = 1970 ... 1999
|
||||
*/
|
||||
*/
|
||||
if (tmfc->year < 70)
|
||||
tmfc->year += 2000;
|
||||
else
|
||||
@ -2492,7 +2492,7 @@ dch_date(int arg, char *inout, int suf, int flag, FormatNode *node, void *data)
|
||||
else if (flag == FROM_CHAR)
|
||||
{
|
||||
sscanf(inout, "%1d", &tmfc->year);
|
||||
|
||||
|
||||
/*
|
||||
* 1-digit year: always +2000
|
||||
*/
|
||||
|
Reference in New Issue
Block a user