@@ -68,6 +68,10 @@ convertNotice PQ.Notify{..}
69-- | Returns a single notification. If no notifications are available,
69-- | Returns a single notification. If no notifications are available,
70-- 'getNotification' blocks until one arrives.
70-- 'getNotification' blocks until one arrives.
72+-- It is safe to call 'getNotification' on a connection that is concurrently
73+-- being used for other purposes, note however that PostgreSQL does not
74+-- deliver notifications while a connection is inside a transaction.
72getNotification :: Connection -> IO Notification
76getNotification :: Connection -> IO Notification
73getNotification conn = join $ withConnection conn fetch
77getNotification conn = join $ withConnection conn fetch