Leon P Smith

Results 259 comments of Leon P Smith

Also, if you just want to round-trip hstore syntax through postgres and postgresql-simple, you can write `values (?::hstore)` as the query template instead of inserting it into a table.

As a classically trained mathematician, I find the behavior currently implemented perfectly intuitive, and postgresql's behavior much too pedantic. It's easy to see that `[4,3] @> x` `` `4

`configurator-ng` only supports it's own proprietary configuration syntax, though it's pretty simple and straightforward. (moreso than TOML, in my opinion) And this configuration syntax is very closely related to the...

Incidentally, the syntax is documented to some degree in the [Data.Configurator](https://hackage.haskell.org/package/configurator-ng-0.0.0.1/docs/Data-Configurator.html) haddocks, though I do need to update that with some of the syntactic extensions detailed in the README.

Well, not really in vanilla postgresql-simple. Anything we could provide would amount to using an extra `MVar`, which I have mixed feelings about. Then you have the additional complication that...

To add to Charles's answer to Saurabh's question, postgresql ensures concurrency safety (for varying values of "safe") per transaction. `postgresql-simple` cannot affect that. However, `postgresql-simple` itself isn't entirely thread safe...

Yeah, a documentation improvement should be fine. I actually had a thought that occurred to me shortly after writing my previous response, which I should write down now before I...

Yep, you are absolutely correct that this sort of mistake would pretty easily lead to deadlock, and I suspect that (without the use of name shadowing) this would be a...

> Generally speaking, sharing the same Connection across multiple threads should not the recommended approach. The recommended approach should be to use a connection-pool with each thread getting a new...

But it is safe to use a connection concurrently; there just isn't any provision at the present time in cases when you want to issue multiple queries atomically (as is...