Fujii Masao <masao(dot)fujii(at)gmail(dot)com> writes:
> I'm going to set the new function calling ereport as the current notice
> processor by using PQsetNoticeProcessor. But the problem is that only the
> completed message like "NOTICE: xxx" is passed to such notice processor,
> i.e., the error level itself is not passed.
Use PQsetNoticeReceiver. The other one is just there for backwards
compatibility.
regards, tom lane