pgsql: Introduce a LOG_SERVER_ONLY ereport level, which is never sent t - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Introduce a LOG_SERVER_ONLY ereport level, which is never sent t
Date
Msg-id E1an7Ql-0003Ar-V6@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Introduce a LOG_SERVER_ONLY ereport level, which is never sent to client.

This elevel is useful for logging audit messages and similar information
that should not be passed to the client.  It's equivalent to LOG in terms
of decisions about logging priority in the postmaster log, but messages
with this elevel will never be sent to the client.

In the current implementation, it's just an alias for the longstanding
COMMERROR elevel (or more accurately, we've made COMMERROR an alias for
this).  At some point it might be interesting to allow a LOG_ONLY flag to
be attached to any elevel, but that would be considerably more complicated,
and it's not clear there's enough use-cases to justify the extra work.
For now, let's just take the easy 90% solution.

David Steele, reviewed by Fabien Coelho, Petr Jelínek, and myself

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/66229ac0040cf1e0f5b9d72271aa9feaf3b3a37e

Modified Files
--------------
src/backend/utils/error/elog.c | 10 +++++-----
src/include/utils/elog.h       | 10 ++++++----
2 files changed, 11 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix latent portability issue in pgwin32_dispatch_queued_signals(
Next
From: Tom Lane
Date:
Subject: pgsql: Add a \gexec command to psql for evaluation of computed queries.