You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'd like to be able to receive a stream of Postgres Notices from a given connection. Ideally this would be done without round-tripping through the tracing/log subsystem.
The specifics of why I need this are somewhat complex, but essentially I'd like to execute SET log_min_messages=debug5, run some queries and collect the log levels that Postgres returns to the client.
Describe the solution you'd like
Some kind of PgListener struct, or stream attached to the connection?
Describe alternatives you've considered
Unfortunately there are none - I've had to use a lower-level library. Which is really annoying because sqlx is great!
Is your feature request related to a problem? Please describe.
I'd like to be able to receive a stream of Postgres
Notice
s from a given connection. Ideally this would be done without round-tripping through the tracing/log subsystem.The specifics of why I need this are somewhat complex, but essentially I'd like to execute
SET log_min_messages=debug5
, run some queries and collect the log levels that Postgres returns to the client.Describe the solution you'd like
Some kind of
PgListener
struct, or stream attached to the connection?Describe alternatives you've considered
Unfortunately there are none - I've had to use a lower-level library. Which is really annoying because
sqlx
is great!Additional context
From this comment:
sqlx/sqlx-postgres/src/connection/stream.rs
Lines 161 to 163 in 42ce24d
The text was updated successfully, but these errors were encountered: