[Cppcms-users] Handling postgres notices in cppdb
Brought to you by:
artyom-beilis
From: Josh H. <jos...@ni...> - 2017-01-19 02:30:53
|
By default, libpq sends "notices" to stderr which can clutter the terminal output of the application that is invoking it. libpq provides a way of overriding the default handler via a call to PQsetNoticeProcessor so that you can write the information to a log or ignore it at your discretion. For more info see: https://www.postgresql.org/docs/9.2/static/libpq-notice-processing.html I'm wondering if any cppdb users have a solution for modifying the way that PostgreSQL notices are handled instead of just printing them all to stderr. The most obvious solution is to write a custom postgres backend that exposes this functionality, but I wonder if there are any simpler alternatives I am missing. |