|From:||dinesh kumar <dineshkumar02(at)gmail(dot)com>|
|Subject:||[PATCH] SQL function to report log message|
|Views:||Raw Message | Whole Thread | Download mbox|
Greetings for the day.
Would like to discuss on below feature here.
Having an SQL function, to write messages to log destination.
As of now, we don't have an SQL function to write custom/application
messages to log destination. We have "RAISE" clause which is controlled by
log_ parameters. If we have an SQL function which works irrespective of log
settings, that would be a good for many log parsers. What i mean is, in DBA
point of view, if we route all our native OS stats to log files in a proper
format, then we can have our log reporting tools to give most effective
reports. Also, Applications can log their own messages to postgres log
files, which can be monitored by DBAs too.
Implemented a new function "pg_report_log" which takes one argument as
text, and returns void. I took, "LOG" prefix for all the reporting
messages.I wasn't sure to go with new prefix for this, since these are
normal LOG messages. Let me know, if i am wrong here.
Here is the attached patch.
|Next Message||Michael Paquier||2015-07-13 08:11:56||Re: [PATCH] SQL function to report log message|
|Previous Message||Pavel Stehule||2015-07-13 07:44:35||Re: [PATCH] Generalized JSON output functions|