You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on some code that needs to interleave (blocking) getCopyData and putCopyData. It seems to work for me when I manually break through the lock for putCopyData and flush, but I'm not sure whether that's actually OK.
The text was updated successfully, but these errors were encountered:
Maybe? It's been a long time since I've worked or thought about this bit of code. Though we would need to adopt some of the techniques in the Notification module in order to avoid some race conditions.
I'm not yet familiar with such use cases. Do you have a pointer to some documentation I could look at?
I guess an alternative would be to explicitly support PGRES_COPY_BOTH mode. My specific use case is a replication connection, which requires the client to periodically send heartbeats to the server while continuing to (blockingly) wait on downstream content.
Would it be reasonable to drop the connection lock here?
postgresql-simple/src/Database/PostgreSQL/Simple/Copy.hs
Line 135 in 14d00c2
I'm working on some code that needs to interleave (blocking) getCopyData and putCopyData. It seems to work for me when I manually break through the lock for putCopyData and flush, but I'm not sure whether that's actually OK.
The text was updated successfully, but these errors were encountered: