PostgreSQL support that through triggers and Notify (www.postgresql.org&#x2F;docs&#x2F;9.4&#x2F;static&#x2F;sql-notify.html). You may look into chat example: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;quiver&#x2F;4240546" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;quiver&#x2F;4240546</a>