Leon P Smith
Leon P Smith
Ok, I think I fixed this issue (in postgresql-simple, not postgresql-libpq) with commits 45ccff4be6bcc8e0f4d70efdaf23a5028a50588c and 83d3c38386af90690f56bb8501167bc74180b06b. This takes care of `exec` and `connect`, and I don't _think_ there are any...
Actually, it turns out that `sendQuery` is still blocking, so while this issue is mostly resolved (and in fact appears to work well enough for my particular use case), it...
Hmm, thanks rjmac! That is in the documentation of `PQflush`, but I'd missed that, and the connection between `PQflush` and a non-blocking `PQsendQuery` isn't as obvious as perhaps it should...
Oh I see. Nice. =) Well, anyway a conversation on #postgresql did turn up a bug in libpq that may be a good reason for postgresql-simple to avoid going `setnonblocking...
Also, see #119 as an example of an issue that's arisen from my quick-and-dirty re-implementation of exec. There's definitely a bit of subtlety when dealing with the COPY case that...
Ugh, I think I'd prefer to ditch my quick-and-dirty async implementation and just use rjmac's, but the one thing that makes me hesitate is the fact that in order to...
Well yes, that's a concern of mine too. I guess it's mitigated in my mind a bit by the fact that it doesn't change often. But yes, the consequences of...
Ok, if we want to compare versions, the compile-time version appears to be defined in `pg_config.h`, the link-time version is available by calling `PQlibVersion`. At least on Debian, libpq-dev provides...
On the other hand, going this route would also require recompilation of `postgresql-libpq` every time `libpq` is upgraded. Debian packages an older version of `postgresql-libpq`, and those package maintainers might...
This is already doable: use the `name` operator in the `FromField` module. Arguably, however, this isn't all that convenient as you have to write a custom `FromField` instance. (or, if...