14

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?

4
  • 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: github.com/bmizerany/pq has been updated 15 days ago. Commented Jul 25, 2012 at 8:07
  • 2
    There is nothing wrong per se, but I've made the experience that it is a bad sign. Commented Jul 25, 2012 at 8:26
  • I personally find something that is updated frequently (every month) more irritating than something that has a (stable) release once a year. Commented Jul 25, 2012 at 8:53
  • 4
    Depends on the maturity - and I wouldn't consider most go libraries that mature (because they are young). Commented Jul 25, 2012 at 9:00

3 Answers 3

12

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

Sign up to request clarification or add additional context in comments.

Comments

4

A list of SQL DB drivers can be found here

Comments

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.

3 Comments

Thanks. The driver mentioned by a_horse_with_no_name seems to be more recent. But I'll look at both.
Report back here, especially your experience using in production.
I felt to unproductive with Go and switched to Scala. If I start again programming in Go and use PostgreSQL, I'll report here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.