listen to postgresql notify #2743
Replies: 5 comments 1 reply
-
Hey @mxfactorial 👋 I don't think this is currently supported since the |
Beta Was this translation helpful? Give feedback.
-
building a debezium connector image consumes 1.6gb of storage which is costly if, in a single line of code, you can directly send a postgres value as an event to a stream processor from a triggered function:
after perusing, youre only using https://pkg.go.dev/database/sql in the code so this is turning into a major feature request requiring a postgres specific driver please consider documenting which dml statements are supported anyway waiting for more +1s |
Beta Was this translation helpful? Give feedback.
-
yes, notifying from postgresql and listening on connect as an input without debezium and a broker
"raw" hints a user can do anything the driver supports but https://github.com/lib/pq requires use of Listener and Notification when so you can say under https://v4.benthos.dev/docs/components/inputs/sql_raw#driver
|
Beta Was this translation helpful? Give feedback.
-
I don't think that's accurate, since you can use |
Beta Was this translation helpful? Give feedback.
-
its not an input either how the sql_raw input can be used to not return data is unrelated to a doc and feature named "input" if you intend to support running a task with your stream processor, then calling the feature a "task" and using Exec() instead of Query() is intuitive but drawing attention to how inputs can be used to not return data requires you to start saying complicated things like "non-input returning input" and "input returning input" steering this back to the original intent while wrangling the current feature naming complexity for others who land here: if youre configuring your connect stream processor with an "input returning input" from postgres, sql_raw does not support returning notifications |
Beta Was this translation helpful? Give feedback.
-
please document on https://v4.benthos.dev/docs/components/inputs/sql_raw whether the postgres driver supports https://www.postgresql.org/docs/current/sql-notify.html
Beta Was this translation helpful? Give feedback.
All reactions