From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | elog cleanup |
Date: | 2002-02-19 05:16:15 |
Message-ID: | 200202190516.g1J5GFM07350@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
This patch fixes several issues with our elog() handling:
o Uniformly spaces tags so log message are indented the same amount:
LOG: database system was shut down at 2002-02-19 05:51:35 CET
LOG: checkpoint record is at 0/BF1D8AC
LOG: redo record is at 0/BF1D8AC; undo record is at 0/0; Shut...
LOG: next transaction id: 242; next oid: 866295
LOG: database system is ready
ERROR: parser: parse error at or near "asdf"
o Renames REALLYFATAL to CRASH (per Tom)
o Remove STOP and make it CRASH
o Add INFO level that prints only to the client
o Add LOG level to print messages only to the server log
o Cause VACUUM to only print to the client
o Change NOTICE to INFO when informational messages are sent. This
mimics the behavior of syslog(3). Before we only had NOTICE. INFO now
gives us LOG_INFO for messages like sequence creation with SERIAL:
LOG_ALERT A condition that should be corrected immediately, such as a
corrupted system database.
LOG_CRIT Critical conditions, e.g., hard device errors.
LOG_ERR Errors.
LOG_WARNING Warning messages.
LOG_NOTICE Conditions that are not error conditions, but should possi-
bly be handled specially.
LOG_INFO Informational messages.
LOG_DEBUG Messages that contain information normally of use only when
debugging a program.
o Server startup message now are labeled with LOG instead of DEBUG,
preventing confusion when people think they have debug enabled.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 111.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Serguei Mokhov | 2002-02-19 05:39:17 | Re: elog cleanup |
Previous Message | Bruce Momjian | 2002-02-18 06:57:41 | MIN/MAX -> Min/Max |