emit_log_hook

A hook which is called before a message is sent to the server log

emit_log_hook is a hook which is called before a message is sent to the server log.

emit_log_hook was added in PostgreSQL 9.2.

Usage

From PostgreSQL 16, an internal function log_status_format() (commit b40baa96) is available to facilitate log line formatting in the same way as would be emitted by the backend itself.

Source code

Change history

Categories

Hooks

See also

hook