PostgreSQL listen and notify

    And then send notifications with optional textual payload:

    pgdriver.Listener

    provides Listeneropen in new window which allows to listen for notifications and automatically re-subscribes to channels when the database connection is lost:

    See for details.