Thread: Connection Types with Logical Replication functions

Connection Types with Logical Replication functions

From
Scott Laird
Date:
Hi, I was curious about the usage of synchronous connections with read_message. The documentation says that consume_message should be used with synchronous connections and that read_message is for async connections. I noticed during development that you could call read_message on a synchronous connection and was curious about the repercussions - if any - would be. Would it make sense to implement a check on calling read_message to make sure that an async connection is set? Thanks!