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
To send a notification you can also use the function pg_notify(text, text). The function takes the channel name as the first argument and the payload as the second. The function is much easier to use than the NOTIFY command if you need to work with non-constant channel names and payloads.
So:
pool.query("SELECT pg_notify('bottle', $1)",["hope you get this message"])
Activity
charmander commentedon Apr 7, 2017
NOTIFYstatements can’t be parameterized. From https://www.postgresql.org/docs/current/static/sql-notify.html:So:
See also #539.