Closed jtdaugherty closed 8 years ago
Not directly, as of yet. However, this functionality has been added to the postgresql-libpq
bindings, so you can use Database.PostgreSQL.Simple.Internal.withConnection
and Database.PostgreSQL.LibPQ.disableNoticeReporting
to achieve what you want.
(Note that the two connection types mentioned in withConnection
are indeed different; the first, outer mention refers to a postgresql-simple connection, while the second, inner mention refers to a postgresql-libpq connection.)
Fantastic - that did what I wanted. Thank you!
I'm seeing a PostgreSQL NOTICE message printed to the terminal where my program is running and I'd like to avoid such output. Example:
Is this something I can control through
postgresql-simple
?