Would it be reasonable to drop the connection lock here?
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.
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.