13

http://go-lang.cat-v.org/pure-go-libs lists two PosgreSQL drivers, but they haven't been updated since months and looking like one man shows. So I wonder if they are reliable / ready for production or if there are other recommended drivers.

Would you use Go with PostgreSQL for production and with what driver?

deamon
  • 89,107
  • 111
  • 320
  • 448
  • 5
    What's wrong with a driver that hasn't been updated "*in months*". There is one PostgreSQL release per year. Why should the driver be updated more often if everything is working? Btw: https://github.com/bmizerany/pq has been updated 15 days ago. –  Jul 25 '12 at 08:07
  • 2
    There is nothing wrong per se, but I've made the experience that it is a bad sign. – deamon Jul 25 '12 at 08:26
  • I personally find something that is updated frequently (every month) more irritating than something that has a (stable) release once a year. –  Jul 25 '12 at 08:53
  • 4
    Depends on the maturity - and I wouldn't consider most go libraries that mature (because they are young). – deamon Jul 25 '12 at 09:00

3 Answers3

11

In the year and a half since this question was asked, pq has matured significantly and is actively maintained (multiple commits by multiple people in the last week, consistent weekly updates for the last several months).

Docs are here: http://godoc.org/github.com/lib/pq

dahc
  • 534
  • 5
  • 6
4

A list of SQL DB drivers can be found here

Jaco Briers
  • 1,703
  • 1
  • 21
  • 34
2

On this basis I probably wouldn't go for it in production...

The newest one seems to be https://github.com/jbarham/gopgsqldriver

But one of the advantages of open source is that you have all the source so you can maintain it yourself, contribute patches or even take over the maintainer's role.

Colin 't Hart
  • 7,372
  • 3
  • 28
  • 51
  • 1
    Thanks. The [driver](https://github.com/bmizerany/pq) mentioned by a_horse_with_no_name seems to be more recent. But I'll look at both. – deamon Jul 25 '12 at 12:22
  • 8
    Report back here, especially your experience using in production. – Colin 't Hart Jul 25 '12 at 12:24
  • 2
    I felt to unproductive with Go and switched to Scala. If I start again programming in Go and use PostgreSQL, I'll report here. – deamon May 08 '13 at 12:00