Re: Export log_line_prefix(); useful for emit_log_hook.

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Export log_line_prefix(); useful for emit_log_hook.
Date: 2022-06-29 13:09:42
Message-ID: 20220629130942.dqac3h3746pjvauq@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 2022-Jun-28, Jeff Davis wrote:

> Patch attached. Some kinds of emit log hooks might find it useful to
> also compute the log_line_prefix.

Hmm, maybe your hypothetical book would prefer to use a different
setting for log line prefix than Log_line_prefix, so it would make sense
to pass the format string as a parameter to the function instead of
relying on the GUC global.

Álvaro Herrera 48°01'N 7°57'E —
"Java is clearly an example of money oriented programming" (A. Stepanov)

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2022-06-29 13:26:24 Re: Emit extra debug message when executing extension script.
Previous Message Amit Kapila 2022-06-29 13:00:50 Re: JSON/SQL: jsonpath: incomprehensible error message