"Simon Riggs" <simon@2ndquadrant.com> writes:
> The idea of the patch is that it generates a log message which then
> invokes log_min_error_statement so that the SQL statement is displayed.
> LOG is not on the list of options there, otherwise I would use it.
As I said, you don't understand how the logging priority control works.
LOG *is* the appropriate level for stuff intended to go to the server log.
regards, tom lane