postgresql_16:7.1.180.3 Notes
PostgreSQL 16 > Reference > SQL Commands > UNLISTEN > Notes
You can unlisten something you were not listening for; no warning or error will appear.
At the end of each session, UNLISTEN * is automatically executed.
A transaction that has executed UNLISTEN cannot be prepared for two-phase commit.