Skip site navigation (1) Skip section navigation (2)

pgsql: Add a hook for processing messages due to be sent to theserver

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add a hook for processing messages due to be sent to theserver
Date: 2012-03-06 20:35:52
Message-ID: E1S516u-0006gk-Mh@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Add a hook for processing messages due to be sent to the server log.

Use-cases for this include custom log filtering rules and custom log
message transmission mechanisms (for instance, lossy log message
collection, which has been discussed several times recently).

As is our common practice for hooks, there's no regression test nor
user-facing documentation for this, though the author did exhibit a
sample module using the hook.

Martin Pihlak, reviewed by Marti Raudsepp

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/19dbc3463161a142537ba5c569c8e6a073a318de

Modified Files
--------------
src/backend/utils/error/elog.c |   26 ++++++++++++++++++++++++++
src/include/utils/elog.h       |    4 ++++
2 files changed, 30 insertions(+), 0 deletions(-)

pgsql-committers by date

Next:From: Peter EisentrautDate: 2012-03-06 21:22:47
Subject: pgsql: libpq: Small code clarification, and avoid casting away const
Previous:From: Robert HaasDate: 2012-03-06 13:24:18
Subject: Re: [COMMITTERS] pgsql: Remove extra copies of LogwrtResult.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group