Re: does the notification of postgres appear in transaction completed order

Tom Lane <[email protected]>
Newsgroups gmane.comp.db.postgresql.sql
Message-ID <[email protected]>
abctevez <[email protected]> writes:
> I want to use notify/listen to catch the message that a transaction completed.Fire notify in trigger and as the official said, it won't notify if transaction rollback.However, I am wondering if the message appear in the same order with transaction execution.I couldn't find this topic on the official web or just I missed it?

https://www.postgresql.org/docs/current/static/sql-notify.html

says

    Except for dropping later instances of duplicate notifications, NOTIFY
    guarantees that notifications from the same transaction get delivered
    in the order they were sent. It is also guaranteed that messages from
    different transactions are delivered in the order in which the
    transactions committed.


			regards, tom lane
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.