]> granicus.if.org Git - postgresql/commit
Add a hook for processing messages due to be sent to the server log.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 6 Mar 2012 20:35:41 +0000 (15:35 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 6 Mar 2012 20:35:41 +0000 (15:35 -0500)
commit19dbc3463161a142537ba5c569c8e6a073a318de
tree5043be2322c8bbe44e7059e771e8ed500769d39f
parentbc97c38115ed48c1dd27e9d534faae204427f9a5
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
src/backend/utils/error/elog.c
src/include/utils/elog.h