jgallagher / go-libpq

cgo-based driver for Postgres
16 stars 9 forks source link

Allow redirecting notice output from stderr to go routine #2

Closed happypancakerd closed 10 years ago

happypancakerd commented 10 years ago

libpq is rather verbose, it dumps all sorts of messages to stderr. This pull request allows to override this behavior and send output to a go function instead.

By default, behavior stays as it is - notices go to stderr. More on that: http://www.postgresql.org/docs/9.1/static/libpq-notice-processing.html