Remove special-case treatment of LOG severity level in standalone mode.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Jun 2013 03:15:15 +0000 (23:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Jun 2013 03:15:15 +0000 (23:15 -0400)
commitc62866eeafd52822ec61a0d2db9428c05e97d3cc
treede37c26c1363bdb8451972ea1f92f364e1a9906e
parentf04216341dd1cc235e975f93ac806d9d3729a344
Remove special-case treatment of LOG severity level in standalone mode.

elog.c has historically treated LOG messages as low-priority during
bootstrap and standalone operation.  This has led to confusion and even
masked a bug, because the normal expectation of code authors is that
elog(LOG) will put something into the postmaster log, and that wasn't
happening during initdb.  So get rid of the special-case rule and make
the priority order the same as it is in normal operation.  To keep from
cluttering initdb's output and the behavior of a standalone backend,
tweak the severity level of three messages routinely issued by xlog.c
during startup and shutdown so that they won't appear in these cases.
Per my proposal back in December.
src/backend/access/transam/xlog.c
src/backend/utils/error/elog.c