In our application, we need some way to listen for the NOTIFY from Postgresql in the background. The Go language is excellent for this as it supports concurrency as a language primitive. In our Go application we’ll use the lib/pq Postgresql driver library. The driver comes with listen…